How can I install Optimization toolbox?

조회 수: 249 (최근 30일)
Ritesh Khan
Ritesh Khan 2020년 3월 31일
댓글: Steven Lord 2024년 3월 27일
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?

답변 (3개)

Sai Bhargav Avula
Sai Bhargav Avula 2020년 4월 1일
Hi,
If you have license for the toolbox you can refer the following link for installation:
Hope this helps!

phannatus
phannatus 2024년 3월 25일

Jose Manuel Gabeiras Vazquez
Jose Manuel Gabeiras Vazquez 2024년 3월 27일
How can I install fsolve?
  댓글 수: 1
Steven Lord
Steven Lord 2024년 3월 27일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by