Error using exampleUti​ls.compone​ntExamples​Dir (line 13)

10 vues (au cours des 30 derniers jours)
Jon Bebeau
Jon Bebeau le 20 Avr 2019
Commenté : Lennah Etyang le 28 Mar 2020
Hello, trying to use example from R2019a documentation openExample('globaloptim/MinimizeaSimpleFunctionwithBoundsExample') and get this error:
Error using exampleUtils.componentExamplesDir (line 13)
Invalid argument "globaloptim".
Error in findExample (line 18)
componentExamplesDir = exampleUtils.componentExamplesDir(component);
Error in openExample (line 24)
metadata = findExample(id);
>>
  2 commentaires
Joel  Borja
Joel Borja le 18 Nov 2019
Did you ever find a solution? I am having the same problem.
TENGFEI Li
TENGFEI Li le 4 Jan 2020
Modifié(e) : TENGFEI Li le 4 Jan 2020
Me too.
I have the same problem "error using exampleUtils.componentExamplesDir "

Connectez-vous pour commenter.

Réponses (1)

TENGFEI Li
TENGFEI Li le 4 Jan 2020
Hi, I got the answer.
We didn't install the Global Optimization Toolbox.
After intslling Global Optimization Toolbox, the error will disappear.
Also, for all the problem, error using exampleUtils.componentExamplesDir (line XX), the answer is similar to it. Just check if you have already installed the corresponding toolbox.

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