Finding the angle between lines that Ive plotted
조회 수: 16 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Pulsed Waveforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!