Azzera filtri
Azzera filtri

how to find the length of two crossed lines?

2 visualizzazioni (ultimi 30 giorni)
Guys, can any one help me to find the length of mentioned line in matlab? I know the length of V1 and V2

Risposta accettata

Torsten
Torsten il 26 Feb 2016
cos(angle(v1,v2)) = ? / length of v1
Best wishes
Torsten.
  2 Commenti
Marry M
Marry M il 26 Feb 2016
thank you. that is the Matlab code?
Torsten
Torsten il 29 Feb 2016
No.
length = abs(atan2d(norm(cross(v1,v2)),dot(v1,v2)))*norm(v1);
is the matlab code.
Best wishes
Torsten.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by