3d curve fitting for a data set
56 ビュー (過去 30 日間)
古いコメントを表示
Hetti Mudiyanselage Chanuka Bhaggya Gunarathne
2021 年 4 月 30 日
コメント済み: VIGNESH BALAJI
2023 年 7 月 21 日
I have 6 data points in 3d. I need to fit a curve to that points and find the equation of that curve. Figure and matlab code is attached.Figure 3 in the code is the one that I need to fit a curve.
0 件のコメント
回答 (2 件)
Prabhan Purwar
2021 年 5 月 3 日
Hi,
I would suggest you to kindly have a look at the Curve Fitting Toolbox it can perform the surface fitting. Use the Curve Fitting App to perform the fitting interactively or see "Fit and Plot a Polynomial Surface" on this documentation page for instructions on how to do it programmatically.
If you don't have Curve Fitting Toolbox, see the "Multiple Regression" section on this documentation page.
If the above doesn't work could you please elaborate upon what you are trying to achieve through code, as it will help us to give an appropriate solution.
Thanks
2 件のコメント
Prabhan Purwar
2021 年 5 月 4 日
Hi,
In 3D space curve fitting takes place as z=f(x,y) which gives a 3D curve/surface, In order to get the relation in 2 variables, the third variable can be eliminated using a relation between the other two variables.
For example
- Get z=f(x,y) equation for surface
- Get f(x)=y equation from 2D curve fitting
- eliminate the variable of your choice (y in this case)
Thanks
VIGNESH BALAJI
2023 年 7 月 14 日
@Prabhan Purwar I have a similar question, How do I write a script in matlab without curve fitting tool to fit data of a 3D point as a line ?
2 件のコメント
VIGNESH BALAJI
2023 年 7 月 21 日
@Torsten I ideally want to generate a catenary curve (2d) to fit a 3D dataset
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!