Physics Forums (http://www.physicsforums.com/index.php)
-   Math & Science Software (http://www.physicsforums.com/forumdisplay.php?f=189)
-   -   Matrices and Matlab Problem (http://www.physicsforums.com/showthread.php?t=122059)

 andyintranzit May26-06 06:42 AM

Matrices and Matlab Problem

Hey guys,

Sorry if this is the wrong forum. Someone bump it across if its not.

This is a question on one of my tests (im doing my first semester of Physics at university) and its got to do with the program Matlab.

We have two vectors u and v. Which of the following gives us the unit vector in the direction of v, starting from u?

a) (v-u)/(u*u')
b) (v-u) * (v - u)
c) (v-u)./mag(v-u)
d) (v-u) / (sqrt(v-u)*(v-u)')

'I understand some basic matrix algebra, but im still pretty spun out about matrices. can someone guide me through this? (a) thanks!

 andyintranzit May26-06 06:58 AM

ok.. i think i can eliminate the middle two because...

for b) you cant multiply two identical vector matrices together? cause they'll be in the same form?

and for c) im pretty sure that mag() isn't a Matlab function at all...

 uart May27-06 12:35 PM