Hi,
I would like to have a two varible polyfit in matlab. In mathcad I have used the function regress(XY,Z,2) for two dimensional polynomial regressin, where XY is a Nx2 matrix and Z is a Nx1. This gives me the 6 coeff I need to get
a0xy+a1y^2+a2y+a3C+a4x+a5x^2. In matlab, however, I can't find...
I'm used to program in matlab where these sort of stuff is easy but I can't find the appropriate way to do this. The part I need to write as a function contains a lot of function fitting and optimization as is a quite complicated program in it self.
I appriciate some help if possible.
/olle
Hi,
I have a program in which I will have to put a large part of it in a loop. I need to create a function of this part, which have a few input parameters, which are both matrices and integer values, and that returns a few number of output values.
Exmple(par1,par2,par3 etc)= for i=1..n...