Angle determination between pinned curved line.

3 ビュー (過去 30 日間)
GA optimization
GA optimization 2014 年 1 月 6 日
編集済み: Roger Stafford 2014 年 1 月 6 日
How to find out the angle ϕ shown in above figure? line is pinned at different points.
  1 件のコメント
Walter Roberson
Walter Roberson 2014 年 1 月 6 日
Is the curved line a cubic spline ?

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

採用された回答

Roger Stafford
Roger Stafford 2014 年 1 月 6 日
編集済み: Roger Stafford 2014 年 1 月 6 日
If s1 is the derivative of the curve on the left at the middle point and s2 the derivative of the curve on the right side at the middle point, the upper angle between the two tangent lines to the curves at that point is given in radians by:
a = mod(atan2(s2-s1,-1-s1*s2),2*pi);
To convert the angle to degrees, multiply this by 180/pi.

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by