Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Subspace problem

1 visualización (últimos 30 días)
Umit
Umit el 17 de Feb. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi, I have 2 2Dvectors that I need to compute the angle between them.
v1 = [1; 0]
v2 = [-1; 1]
subspace(v1, v2) = 1.5708 which is false
while
acos(dot(v1, v2) / (norm(v1) * norm(v2))) = 2.3562 which is true
Why subspace gives me wrong answer? Shouldn't it also gives me 2.3562? Can someone explains me why subspace works differently
Thanks

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by