How can I install Optimization toolbox?

810 visualizaciones (últimos 30 días)
Ritesh Khan
Ritesh Khan el 31 de Mzo. de 2020
Comentada: Steven Lord el 27 de Mzo. de 2024 a las 3:20
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?

Respuestas (3)

Sai Bhargav Avula
Sai Bhargav Avula el 1 de Abr. de 2020
Hi,
If you have license for the toolbox you can refer the following link for installation:
Hope this helps!

phannatus
phannatus el 25 de Mzo. de 2024

Jose Manuel Gabeiras Vazquez
Jose Manuel Gabeiras Vazquez el 27 de Mzo. de 2024 a las 0:07
How can I install fsolve?
  1 comentario
Steven Lord
Steven Lord el 27 de Mzo. de 2024 a las 3:20
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by