MATLAB: How to curve fit 4D data

4dcurve fittingdata

Hello 😀
I am using Surface fitting toolbox to curve fit 3 dimesional data. Until now, I have 3 variables (X, Y and Z), and i can fit with no problems, and avaliate the goodnes of fit.
But now, I need to put there one more variable (T), and will be 4 dimensional. Any ideia how to fit that to obtain a mathematical expression, and avaliate the goodnes of fit?
My Matlab is R2011a
Thank you

Best Answer

I don't think you can do it using the Curve Fitting Toolbox, but there is no such limitation on lsqcurvefit in the Optimization Toolbox. Goodness of fit metrics are not directly given, but you can compute them yourself using the residuals and Jacobian returned by lsqcurvefit.