Effacer les filtres
Effacer les filtres

Do I have the Global Optimization Toolbox?

15 vues (au cours des 30 derniers jours)
Sarah Johnson
Sarah Johnson le 17 Déc 2018
Modifié(e) : TADA le 17 Déc 2018
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' ??

Réponses (2)

Mayur Agnani
Mayur Agnani le 17 Déc 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 commentaire
Alan Weiss
Alan Weiss le 17 Déc 2018
Just a small clarification: fsolve requires Optimization Toolbox™, not Global Optimization Toolbox.
Alan Weiss
MATLAB mathematical toolbox documentation

Connectez-vous pour commenter.


TADA
TADA le 17 Déc 2018
Modifié(e) : TADA le 17 Déc 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

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by