help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: leasqr help


From: Olaf Till
Subject: Re: leasqr help
Date: Wed, 9 Apr 2008 16:29:49 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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).
...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]