Hey guys,(adsbygoogle = window.adsbygoogle || []).push({});

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!

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matrices and Matlab Problem

Loading...

Similar Threads for Matrices Matlab Problem | Date |
---|---|

Solving equations involving specific elements of matrices in MATLAB? | Mar 23, 2014 |

Generating covariance matrices as defined in MATLAB | Jul 12, 2012 |

MATLAB: sparse matrices in matlab anamoly? | Jul 2, 2012 |

Matlab, how read and extract matrices | May 25, 2012 |

Matlab character matrices | Feb 20, 2012 |

**Physics Forums - The Fusion of Science and Community**