How can I install Optimization toolbox?
653 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(3 个)
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!
Jose Manuel Gabeiras Vazquez
2024-3-27
How can I install fsolve?
1 个评论
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 Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!