{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online