Clear Filters
Clear Filters

how to find the length of two crossed lines?

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

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!