leasqr help
Olaf Till
olaf.till at uni-jena.de
Wed Apr 9 09:29:49 CDT 2008
On Wed, Apr 09, 2008 at 02:02:02PM +0200, Francesco Potorti` wrote:
> ...
> >In case a have a "Matrix" as data, would it work right ?
> >In this case my "function" should return a matrix as well ?
>
> Supposing that by "data" you mean the "observed values", the answer is
> no: the function should return a scalar value.
>
Sorry, but this is not true ... if you do not mean a different
'leasqr.m'; I have the one with the help text below in mind.
leasqr accepts vectors of observed values, and the user-supplied
function should compute a vector with as many elements as observed
values.
octave:1> help leasqr
leasqr is the user-defined function from the file
/usr/share/octave/site/api-v13/m/octave2.1-forge/optim/leasqr.m
function [f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2]=
leasqr(x,y,pin,F,{stol,niter,wt,dp,dFdp,options})
Levenberg-Marquardt nonlinear regression of f(x,p) to y(x).
...
More information about the Help-octave
mailing list