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

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

Did you ever find a solution? I am having the same problem.
TENGFEI Li
TENGFEI Li 2020년 1월 4일
편집: TENGFEI Li 2020년 1월 4일
Me too.
I have the same problem "error using exampleUtils.componentExamplesDir "

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

답변 (1개)

TENGFEI Li
TENGFEI Li 2020년 1월 4일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

질문:

2019년 4월 20일

댓글:

2020년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by