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

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);

Réponses (1)

You need to have the "Statistics and Machine Learning Toolbox".
Run "ver stats" to check

4 commentaires

I think I have it- this message I get:
MATLAB Version: 9.5.0.944444 (R2018b)
MATLAB License Number: 663068
Operating System: Microsoft Windows 10 Education Version 10.0 (Build 18362)
Java Version: Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Statistics and Machine Learning Toolbox Version 11.4 (R2018b)
Make sure you run the command in a folder that you have write access and can create a subfolder. The command creates a folder \Examples at your current folder.
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?
edit exampleUtils.getExamplesDir
Add a breakpoint at line 13, check the condition to figure out which caused the error.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by