leasqrdemo

From:

Petr Šimon

Subject:

leasqrdemo

Date:

Fri, 29 Sep 2006 09:41:39 +0800

User-agent:

Mutt/1.5.13 (2006-08-11)

Hello,
I am trying to fit function b*(x^a), but I don't know much about fitting
and I also have problems with derivatives.
I am using leasqrdemo.m, where I defined
p = [-1,10];
....
function y = leasqrfunc(x,p)
y = p(2)*(x^p(1))
endfunction
but I don't know what the leasqrdfdp should look like.
function y = leasqrdfdp(x,f,p,dp,func)
y = [?,?]
endfunction
Can anyone help? I know this is probably a trivial question, sorry for
trashing mailing list with it
Thanks a lot
Petr