|
"Anthony Mai" <antoniusmae@gmail.com> wrote in message <hcsc67$644$1@fred.mathworks.com>...
> This is in the documentation:
>
> % FMINSPLEAS assumes a model of the form:
> % ydata = a1*f1(INLP,xdata) + a2*f2(INLP,xdata) + ...
> % funlist is the list of functions {f1,f2,...}.
>
> Yet, I am still quite not comprehending how to approach this using fmins, as I have 3 parametrics not a z=f(x,y),
===========
A few notes that might help:
(1) f1, f2, etc... can be vector-valued functions in fminspleas
(2) You don't have a z=f(x,y), but you do have an X=f(theta,phi).
In other words, instead of z,x,y you have X, theta,phi respectively. The labelling is the only real difference.
(3) The fact that you have 3 parametrics doesn't add much complexity in this case, because all three of X, Y, Z depend on a different set of parameters. So you can really treat this as three separate surface fitting problems
X=f(theta,phi); %problem 1 - fit a surface to X
Y=g(theta,phi); %problem 2 - fit a surface to Y
Z=h(theta,phi); %problem 3 - fit a surface to Z
(4) The dependence of X on a0, a1 is purely linear.
It's just a linear fitting. Similarly for Y.
|