Finding the angle between lines that Ive plotted
3 views (last 30 days)
Show older comments
Good evening ,
I've been trying to find the angle of the lines in the attached photo and i can't seem to find it correctly.
This is the code i've been using.
Please help.
% plot the mouse point coordinates on the figure
L = plot(mousePointCoords(:,1), mousePointCoords(:,2),'b','LineWidth',2);
u = mousePointCoords(:,1)
v = mousePointCoords(:,2)
CosTheta = dot(u,v)/(norm(u)*norm(v));
ThetaInDegrees = acosd(CosTheta);
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!