我有以下倍頻leasqr錯誤
x=[0.01:0.01:.1];
y=[1 1 1 1 1 0 0 0 0 0 ];
[email protected](x,p) 0.5-(1/Pi)*atan(p(2)*(x-p(1)));
p0=[0.05 10000];
當我運行以下
[f p]=leasqr(x,y,p0,F)
我得到
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 574, column 5
我缺少的東西?
編輯:更新了優化包。新的錯誤消息:
error: binary operator `.*' not implemented for `matrix' by `symbolic matrix' operations
error: called from:
error: /usr/share/octave/packages/optim-1.2.2/private/__lm_svd__.m at line 145, column 5
error: /usr/share/octave/packages/optim-1.2.2/leasqr.m at line 582, column 26
謝謝,我有一個強烈的懷疑......有補丁或新版本? – Ivan 2013-03-11 01:26:56
不客氣。我添加了幫助我的命令 – 2013-03-11 01:36:24
我有一個新的錯誤消息,它是一個錯誤還是我的代碼? – Ivan 2013-03-11 01:47:19