From: rak rakshit on
Hi

I want to use fittype to fit an equation of type z=f(x,y). I have used curvefitting earlier for y=f(x).

As like,
W1 = fittype('(lc*(........)','coeff',{.....},'problem',{'....' '..' '....'});

and then,
optsW1.StartPoint = [cm1(4)];
[funW1,goff]=fit(x,y,W1,optsW1,'problem',{........});
and so and so.

However, I don not know how to give input of two independent variables for curvefitting.

Can anyone help me.

Thanks for reading.

Rakshit