How can I install Optimization toolbox?

1,286 views (last 30 days)
Ritesh Khan
Ritesh Khan on 31 Mar 2020
function F =fun(x)
F(1) = exp(-exp(-(x(1)+x(2)))) - x(2)*(1+x(1)^2);
F(2) = x(1)*cos(x(2)) + x(2)*sin(x(1)) - 0.5;
end
command box
>> x0=[0;0];
>> fsolve(@(x) fun(x),x0)
'fsolve' requires Optimization Toolbox.
Why this is happening?

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!