MATLAB: How to curve fit 4D data

4dcurve fittingfittingsurface

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?
Thank you

Best Answer

If your curves will be polynomials, try my FEX function MultiPolyRegress. It also provides a fairly rich set of goodness of fit measures.