Can't open example openExample('stats/TrainARegressionEnsembleExample')
13 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
Fangjun Jiang
2019-9-6
You need to have the "Statistics and Machine Learning Toolbox".
Run "ver stats" to check
4 个评论
Fangjun Jiang
2019-9-6
edit exampleUtils.getExamplesDir
Add a breakpoint at line 13, check the condition to figure out which caused the error.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!