Implementing interparc function for dividing arc to segments

7 ビュー (過去 30 日間)
Hari krishnan
Hari krishnan 2019 年 1 月 8 日
コメント済み: Hari krishnan 2019 年 1 月 8 日
I want to divide an arc to equal segments. I found a function called as https://in.mathworks.com/matlabcentral/fileexchange/34874-interparc, which can perform this. But i am slightly confused by the implementation. For eg: In the code below, i am trying to divide the arc in to 25 equal sections, What i want to know is whether each section have equal arc length. Any help to solve this will be appreciated.
px = X_coord_req; % X-values
py = Y_coord_req; % Y-values
pt = interparc(25,px,py,'pchip'); % do this this mean the arc is divided to 25 segments of equal arc length?
plot(px,py,'r',pt(:,1),pt(:,2),'b-o')
ax = gca;
ax.YDir = 'reverse';
axis([0 6600 0 5000])
  3 件のコメント
Walter Roberson
Walter Roberson 2019 年 1 月 8 日
Yes each section will have equal arc length.
Hari krishnan
Hari krishnan 2019 年 1 月 8 日
@Walter Robinson . Thank you very much

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeBiological and Health Sciences についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by