Do I have the Global Optimization Toolbox?
20 views (last 30 days)
Show older comments
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' ??
0 Comments
Answers (2)
Mayur Agnani
on 17 Dec 2018
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 Comment
Alan Weiss
on 17 Dec 2018
Just a small clarification: fsolve requires Optimization Toolbox™, not Global Optimization Toolbox.
Alan Weiss
MATLAB mathematical toolbox documentation
TADA
on 17 Dec 2018
Edited: TADA
on 17 Dec 2018
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
0 Comments
See Also
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!