필터 지우기
필터 지우기

Do I have the Global Optimization Toolbox?

조회 수: 8 (최근 30일)
Sarah Johnson
Sarah Johnson 2018년 12월 17일
편집: TADA 2018년 12월 17일
I attempt to use the 'fsolve' function and get the following error:
??? Undefined function or method 'fsolve' for input arguments of type 'function_handle'.
I type "ver" to see what my matlab version is to see if perhaps I do not have the Global Optimization Toolbox, but I cannot tell from this information if I have the toolbox or not.
What can I do to be able to use commands like 'fsolve' ??

답변 (2개)

Mayur Agnani
Mayur Agnani 2018년 12월 17일
Hi Sarah,
I see that you ver command, doesn't shows the Global Optimization Toolbox. it is most likely you do not have the Global Optimization Toolbox.Below is the link to ver dcoumentation.
Note: this tells you if it is installed, which is what you asked, though not if you have a license for it or not.
license( 'test', 'Signal_Toolbox' )
If you are using MATLAB version R2015b or later, you can view and manage all installed add-ons including toolboxes using the Add-On Manager. To open the Add-On Manager, in MATLAB, go to the Home tab, and select Add-Ons > Manage Add-Ons.
To view the function list for a toolbox, select the toolbox in the Add-On Manager and, in the Options menu on the right of the add-on, select View in Add-On Explorer. The Functions tab shows the list of functions included with the toolbox.
For using the fsolve coomand you have to install Global Optimization Toolbox.To install additional toolboxes into an existing installation of MATLAB
Mayur
  댓글 수: 1
Alan Weiss
Alan Weiss 2018년 12월 17일
Just a small clarification: fsolve requires Optimization Toolbox™, not Global Optimization Toolbox.
Alan Weiss
MATLAB mathematical toolbox documentation

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


TADA
TADA 2018년 12월 17일
편집: TADA 2018년 12월 17일
license('checkout', 'Optimization_Toolbox')
It might also be overriden somewhere in your matlab search path,
run this to make sure:
which('fsolve')
the path should be something like that:
C:\Program Files\MATLAB\R2017b\toolbox\optim\optim\fsolve.m

카테고리

Help CenterFile 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!

Translated by