help-octave
[Top][All Lists]
Advanced

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

Re: non-linear fitting with bounds


From: Stefan Neumann
Subject: Re: non-linear fitting with bounds
Date: Mon, 15 Mar 2010 01:23:50 +0100



not working:
# ------------------------------------ #
# function with 2 parameters
options.bounds=[1,2;1,2]
[f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2]=leasqr(x,y,pin,F,options);
# ------------------------------------ #


Found it:

# ------------------------------------ #
options.bounds=[1,2;1,2]
[f,p,kvg,iter,corp,covp,covr,stdresid,Z,r2]=leasqr(x,y,pin,F,.0001,20,ones(length(y),1),.001*ones(size(pin)),"dfdp",options);
# ------------------------------------ #

'options' is a positional parameter.

The parameters before 'options' cannot be left out and need to be explicitly set to their defaults. The defaults can be found in 'help leasqr'

Thanks for the previous help.
stn



reply via email to

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