フィルターのクリア

Finding the angle between lines that Ive plotted

5 ビュー (過去 30 日間)
Zo
Zo 2019 年 3 月 25 日
コメント済み: Zo 2019 年 3 月 26 日
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);

採用された回答

KSSV
KSSV 2019 年 3 月 25 日
  1 件のコメント
Zo
Zo 2019 年 3 月 26 日
okay so i did use them. However when i ran the code, i got three angles and im not sure which is the angle that i am looking for. I attached what i got.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePulsed Waveforms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by