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.
Best Answer