How to curve fit 4D data?

Hello :D
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

 Accepted Answer

Ahmet Cecen
Ahmet Cecen on 27 Apr 2015

2 votes

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

More Answers (1)

Sean de Wolski
Sean de Wolski on 27 Apr 2015

0 votes

Statistics Toolbox provides fitnlm which will fit in N-D for you.

3 Comments

Or fitlm apparently for linear regression. When did this function get implemented? Seems my function is becoming obsolete (at least for people with the toolbox), except for the LOOCV trick, which is simple enough to add, wonder why they haven't.
These are newer functions that provide similar functionality to nlinfit or mvregress
I have matlab R2011a, how can i do with this version?

Sign in to comment.

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!