find angle between lines
17 ビュー (過去 30 日間)
古いコメントを表示
hello
i need to find the angles between lines
how can i do in code
1 件のコメント
John D'Errico
2018 年 12 月 25 日
編集済み: John D'Errico
2018 年 12 月 25 日
As a hint:
That will suffice. Why not try it?
Or, you could find the inclination of each line, best done using atan2. Then subtract. That too will work, as long as you are careful.
採用された回答
madhan ravi
2018 年 12 月 25 日
5 件のコメント
madhan ravi
2018 年 12 月 25 日
編集済み: madhan ravi
2018 年 12 月 25 日
x = [800 905]; % common point
y = [250 330];
a = [800 905]; % common point
b = [825 333];
angle_between = (atan((y(2)-y(1))/(x(2)-x(1)))...
- atan((b(2)-b(1))/(a(2)-a(1)))) * 180/pi % in degrees
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!