Why do I receive an error when I pass a lambda value for the 'levenberg-marquardt' algorithm using OPTIMOPTIONS, in MATLAB 8.1 (R2013a) ?

1 次查看(过去 30 天)
When I am executing the following command according to the documentation :
lsqoptions = optimoptions(@lsqnonlin,'Algorithm',{'levenberg-marquardt',.005});
I receive the following error :
Error using optimoptions (line 114)
Too many outputs requested. Most likely cause is missing [] around left hand side that has a comma separated list expansion.

采纳的回答

MathWorks Support Team
This is a bug in MATLAB 8.1 (R2013a) in the way optimoptions takes the inputs.
As a workaround you can use OPTIMSET :
lsqoptions = optimset('Algorithm',{'levenberg-marquardt',.005});

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

尚未输入任何标签。

产品


版本

R2013a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by