Effacer les filtres
Effacer les filtres

how to find the length of two crossed lines?

2 vues (au cours des 30 derniers jours)
Marry M
Marry M le 26 Fév 2016
Commenté : Torsten le 29 Fév 2016
Guys, can any one help me to find the length of mentioned line in matlab? I know the length of V1 and V2

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by