From: Fang Liu on
Does lsqcurvefit(fun,x0,xdata,ydata) can deal with the problem below?

xdata has the following form
1 (x1,y1,z1)
2 (x2,y2,z2)
....
n (xn,yn,zn)

ydata has the following form
1 (u1,v1)
2 (u2,v2)
....
n (un,vn)

fun has the following form
Y = f(a1..ak,x,y,z) a1...ak are coefficients. Y= (u,v) is a 2-d vector.

If lsqcurvefit can not solve the problem, can any other matlab algorithm or function do?

Thanks a lot.