[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: leasqr requires optional arguments
From: |
Lukas Reichlin |
Subject: |
Re: leasqr requires optional arguments |
Date: |
Mon, 14 Oct 2013 18:40:25 +0200 |
On 14.10.2013, at 18:00, oxy <address@hidden> wrote:
> hi guys,
>
> if i go to the Demonstration 1 from the page:
>
> http://octave.sourceforge.net/optim/function/leasqr.html
>
> and end it with (as in the example):
>
> leasqr (t, data, pin, F, stol, niter, wt1, dp, dFdp, options)
>
> all goes fine. If i end this example with:
>
>> leasqr (t, data, pin, F)
>
> I get:
>
> error: Invalid call to options. Correct usage is:
>
> -- Function File: OPT = options ("KEY1", VALUE1, "KEY2", VALUE2, ...)
>
> error: called from:
> error: /usr/local/share/octave/3.6.4/m/help/print_usage.m at line 87,
> column 5
> error: /usr/local/share/octave/packages/control-2.4.2/options.m at
> line 68, column 5
> error: evaluating argument list element number 1
> error: /usr/share/octave/packages/3.2/optim-1.0.17/leasqr.m at line
> 575, column 5
>
>
> But the last arguments should be optional !?!?
> Any idea whats happening?
> I thank u a lot!
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
Have you tried updating your optim package to optim-1.2.2?
pkg install -forge optim
Lukas