From: Moshe Averbukh on
Hello,
I need to fit the group of experimental points (X,Y) by special function where I have to find the coefficients which will give the minimum of leastsquareroot. The problem is that some of the coefficients related one with another by constrains. The standard function such as lsqnonlin could'n be applied because it hasn't constrained options.
Thanks in advance
From: John D'Errico on
"Moshe Averbukh" <averbm(a)gmai.com> wrote in message <haq18t$abt$1(a)fred.mathworks.com>...
> Hello,
> I need to fit the group of experimental points (X,Y) by special function where I have to find the coefficients which will give the minimum of leastsquareroot. The problem is that some of the coefficients related one with another by constrains. The standard function such as lsqnonlin could'n be applied because it hasn't constrained options.
> Thanks in advance

So use fmincon. WTP?

John
From: Moshe Averbukh on
First of corse thanks,
But how can I enter a vector of (X,Y) to the script of the fmincon?

"John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <haq2i5
$23h$1(a)fred.mathworks.com>...
> "Moshe Averbukh" <averbm(a)gmai.com> wrote in message <haq18t$abt$1(a)fred.mathworks.com>...
> > Hello,
> > I need to fit the group of experimental points (X,Y) by special function where I have to find the coefficients which will give the minimum of leastsquareroot. The problem is that some of the coefficients related one with another by constrains. The standard function such as lsqnonlin could'n be applied because it hasn't constrained options.
> > Thanks in advance
>
> So use fmincon. WTP?
>
> John