Error using optimset (line 214) Unrecognized parameter name 'NonlEqnAlgorithm'.
3 views (last 30 days)
Show older comments
Hi,
I have the following piece of Matlab 2008a code:
fcn = @(x)objfcn(x, Recovery, DiscountFactors, Tenors) - Spreads; % start with PDs equal to 50% RNPD = fsolve(fcn, 0.5 .* ones(1, length(Tenors)), optimset('Display', 'off', 'NonlEqnAlgorithm', 'lm'));
I am trying to run this in Matlab 2014a, but I get the following error:
Error using optimset (line 214) Unrecognized parameter name 'NonlEqnAlgorithm'.
Could you please help me resolve this error as I am new to Matlab?
0 Comments
Answers (1)
Alan Weiss
on 22 Oct 2014
Remove the 'NonlEqnAlgorithm' argument, as it makes no sense:
fsolve(fcn, 0.5 .* ones(1, length(Tenors)), optimset('Display', 'off'));
Alan Weiss
MATLAB mathematical toolbox documentation
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!