Does curve fitting toolbox support 3D points?
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi, I am beginning to use curve fitting toolbox. I read the document about the functions, however I find the functions are defined to fit 2D points. Currently I have to fit one curve for a 3D data set. I don't find any example code that fits 3D points. Many users need to fit 3D data set. Can anyone give me some advice or link to show how to use curve fitting toolbox for 3D points.
Regards Jogging
댓글 수: 3
답변 (2개)
Sean de Wolski
2014년 9월 10일
lsqcurvefit in the Optimization Toolbox or NonLinearModel.fit in the Statistics Toolbox.
댓글 수: 3
Matt J
2014년 9월 12일
편집: Matt J
2014년 9월 12일
It may help a lot if people try to use curve fitting for 3D points.
Fitting a 3D spline [x(t), y(t), z(t)] is the same as doing 1D spline fits separately to x(t), y(t), and z(t). It doesn't require any new functionality. Also, as noted at the link you posted, there are already many tools for doing this kind of fitting freely available on the File Exchange, so there is less reason for MathWorks to try to sell their own.
I don't understand that three components are functions of the distance between points.
You want the curve [x(t),y(t),z(t)] to be traversed as t increases from 0 to something. The above is just one possible way of defining a range for the parameter t.
Marc
2014년 9월 14일
Maybe I am not getting it but the current curve fitting tool allows for x, y and z data so there is 3D fitting support in the curve fitting toolbox.
댓글 수: 2
VIGNESH BALAJI
2023년 7월 20일
@Marc the current curve fitting toolbox allows either giving x,y (2D as input) or [x,y] and z meaning a surface. It does not allow to fit a 2d curve in 3d space. If there are any tools like that please let me know
참고 항목
카테고리
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!