Can't open example openExampl​e('stats/T​rainARegre​ssionEnsem​bleExample​')

53 visualizaciones (últimos 30 días)
Vlatko Milic
Vlatko Milic el 6 de Sept. de 2019
Comentada: Fangjun Jiang el 6 de Sept. de 2019
Hi Matlab buddies,
I can't open example openExample('stats/TrainARegressionEnsembleExample') in my Matlab R2018B. Do you know what the problem could be? The version? I get the following wrong message:
Error using exampleUtils.getExamplesDir (line 13)
Unable to create a working directory at the location returned by the userpath function.
Error in exampleUtils.getWorkDir (line 2)
ed = exampleUtils.getExamplesDir();
Error in setupExample (line 11)
workDir = exampleUtils.getWorkDir(metadata);
Error in openExample (line 29)
workDir = setupExample(id, workDir);

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 6 de Sept. de 2019
You need to have the "Statistics and Machine Learning Toolbox".
Run "ver stats" to check
  4 comentarios
Vlatko Milic
Vlatko Milic el 6 de Sept. de 2019
I have access to the folder and can create a subfolder. I guess the command loads some data? Do I need to load statistic toolbox somehow?
Fangjun Jiang
Fangjun Jiang el 6 de Sept. de 2019
edit exampleUtils.getExamplesDir
Add a breakpoint at line 13, check the condition to figure out which caused the error.

Iniciar sesión para comentar.

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by