unitvec -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function n = unitvec (A,B) % %Function to find a vector with three components of a unit vector in the %direction of A to B n= ((Bx-Ax)/sqrt((Bx-Ax)^2+(By-Ay)^2+(Bz-Az)^2)),((By-Ay)/sqrt((Bx-Ax)^2+(By-
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Ay)^2+(Bz-Az)^2)),((Bz-Az)/sqrt((Bx-Ax)^2+(By-Ay)^2+(Bz-Az)^2)) end...
View Full Document

This note was uploaded on 06/18/2009 for the course MATH 151 taught by Professor Artbelmonte during the Spring '06 term at Texas A&M.

Ask a homework question - tutors are online