フィルターのクリア

how can i fit smooth curve through these points ?

4 ビュー (過去 30 日間)
shahin hashemi
shahin hashemi 2018 年 2 月 16 日
コメント済み: shahin hashemi 2018 年 2 月 17 日
dear all
i have data point like below and i want to fit smooth curve (interpolate) through these point
x=0,0.0521848353989790,0.0650347106509774,0.0290795069951748,-0.0285693207263949
y=0,0.0247909821202880,0.0806454201568941,0.126123623558399,0.127238625523199
z=0,-0.00507868172844240,-0.0139159756869431,-0.0155072305512437,-0.00870218062387152
i use curve fitting toolbox for 2D data point and it works fine but when i want to use it with 3D data point i receive surface instead of curve
and i really appreciated if i could do this with cod instead of using tool box

採用された回答

John D'Errico
John D'Errico 2018 年 2 月 16 日
編集済み: John D'Errico 2018 年 2 月 16 日
xyzint = interparc(100,x',y',z','spline');
plot3(x,y,z,'o')
grid on
box on
hold on
plot3(xyzint(:,1),xyzint(:,2),xyzint(:,3),'-r')
No "toolbox" required. But you will need interparc.
Could you write the code yourself? Of course. Interparc is just one function. Not even that complicated.
  2 件のコメント
Jim Riggs
Jim Riggs 2018 年 2 月 17 日
編集済み: Jim Riggs 2018 年 2 月 17 日
Very cool John!
shahin hashemi
shahin hashemi 2018 年 2 月 17 日
thank you very much john

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

その他の回答 (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