Filter löschen
Filter löschen

Can anyone help me interpret and if possible give an example?

1 Ansicht (letzte 30 Tage)
Manuel Loeza-Orozco
Manuel Loeza-Orozco am 7 Dez. 2016
Erneut geöffnet: Walter Roberson am 22 Dez. 2018
Write a function ang( v1,v2 ) that takes two vectors of the same length and returns the angle between them in radians.
Here the arrows over letters denote vectors and letter without arrows, the magnitude (length) of the vectors. Your function needs to check that both v1 and v2 are vectors and have the same number of elements. If not, produce an error message with the built-in error function. Also note that v1 and v2 can be row or column vectors.

Akzeptierte Antwort

David Barry
David Barry am 8 Dez. 2016
This sounds very much like a homework question which we obviously can't give a direct answer for. Have you tried any code so far that you can upload so we can help further? Here are some links that might be useful.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by