3d curve fitting for a data set
196 views (last 30 days)
Hetti Mudiyanselage Chanuka Bhaggya Gunarathne on 30 Apr 2021
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.
Prabhan Purwar on 3 May 2021
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.