help-octave
[Top][All Lists]
Advanced

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

leasqr error


From: SBoris
Subject: leasqr error
Date: Wed, 14 Nov 2012 04:48:38 -0800 (PST)

I ran the  code
<http://my.safaribooksonline.com/book/-/9781849513326/more-examples-data-analysis/ch07lvl1sec06>
 
:

x=linspace(0, 5); y = 1./(1 + 1.2*x.^(1.8)) + randn(1,100)*0.03;
function y = ffun(x, p)
y = 1./(1+p(1)*x.^p(2));
endfunction
p = [0.5 0.0];
[yfit pfit cvg iter] = leasqr(x, y, p, "ffun");
cvg, iter, pfit
leasqr(x,y,pin,F,{stol,niter,wt,dp,dFdp,options})

And have got the error message:
error: Invalid call to options.  Correct usage is:

 -- Function File: OPT = options ("KEY1", VALUE1, "KEY2", VALUE2, ...)
 
error: called from:
error:   /usr/share/octave/3.6.2/m/help/print_usage.m at line 87, column 5
error:   /usr/share/octave/packages/control-2.3.52/options.m at line 68,
column
 5
error: evaluating argument list element number 1
error:   /usr/share/octave/packages/optim-1.2.0/leasqr.m at line 577, column
5
>>>error:  
/home/boris/Documents/Octave/Compartment-models/Calcs/leasqr/lasqr_
simple.m at line 6, column 26

I read post at  leasqr question (again)
<http://octave.1599824.n4.nabble.com/leasqr-question-again-td4644120.html>  
and did changes in my leasqr.m as it was mentioned in the post. But in my
case the error is at line 577. Could you help me? 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/leasqr-error-tp4646648.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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