[Top][All Lists]

[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

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));
p = [0.5 0.0];
[yfit pfit cvg iter] = leasqr(x, y, p, "ffun");
cvg, iter, pfit

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,
error: evaluating argument list element number 1
error:   /usr/share/octave/packages/optim-1.2.0/leasqr.m at line 577, column
simple.m at line 6, column 26

I read post at  leasqr question (again)
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:
Sent from the Octave - General mailing list archive at

reply via email to

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