MATLAB Answers


4D regression

Asked by Donald Hume on 21 Sep 2011


    I have a data set (ie a = f(x,y,z)). I'm trying apply a regression to it, but all I can seem to find are articles fitting z = f(x,y). Could someone please point me at a relevant article, I believe I'm having difficulties because of my incorrect regression vernacular. Any suggestions are appreciated. 



Log in to comment.


2 Answers

Answer by the cyclist
on 21 Sep 2011
 Accepted Answer

This is typically known as either "multiple regression" or "multivariate regression". That should help you find resources online. You can use the regress() function to do it in MATLAB.

  1 Comment

Great, thanks.

Log in to comment.

Answer by Sean de Wolski
on 21 Sep 2011

Is it a polynomial you're looking for? If so - write out the equations and then put them in matrix form and solve them using ax=b. We can help more if you give us significantly more information.


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Win prizes and improve your MATLAB skills

Play today