How can I install Optimization toolbox?
Ältere Kommentare anzeigen
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?
Antworten (3)
Sai Bhargav Avula
am 1 Apr. 2020
1 Stimme
Hi,
If you have license for the toolbox you can refer the following link for installation:
Hope this helps!
1 Kommentar
Faezeh Zarrin Khat
am 21 Feb. 2022
That helped a lot, thank you!
phannatus
am 25 Mär. 2024
0 Stimmen

Jose Manuel Gabeiras Vazquez
am 27 Mär. 2024
0 Stimmen
How can I install fsolve?
1 Kommentar
Steven Lord
am 27 Mär. 2024
The fsolve function is part of Optimization Toolbox. You can check if you have this toolbox installed by running the ver command and looking for a line starting with "Optimization Toolbox" in the displayed output.
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!