line calculations using its known coordinates

1 回表示 (過去 30 日間)
Ahmed Galal
Ahmed Galal 2021 年 5 月 30 日
コメント済み: William Rose 2021 年 5 月 30 日
Hello every one
How to calculate the angle between two lines (lines have known coordinates)
Thanks

回答 (1 件)

William Rose
William Rose 2021 年 5 月 30 日
Suppose slope of line 1 is a1 and slope of line 2 is a2. Then angle of line 1 relative to x axis is theta1=arctan(a1) and angle of line 2 is theta2=arctan(a2). Angle between lines is theta1-theta2.
  1 件のコメント
William Rose
William Rose 2021 年 5 月 30 日
In Matlab, the arctan function is atan().

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

カテゴリ

Help Center および File ExchangeCartesian Coordinate System Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by