How can I run examples I found on the MathWorks site?

4 次查看(过去 30 天)
I wanted to run the following example:
I clicked on "try it in Matlab" and copied "openExample('ident_featured/idnlgreydemo11')" in the comand window but It didn't work. See the following error code:
Error using findExample (line 25) Invalid argument "ident_featured/idnlgreydemo11".
Error in setupExample (line 5) metadata = findExample(arg);
Error in openExample (line 10) [metadata,workDir] = setupExample(varargin{:});
What did I do wrong? Do I have to install something before trying?
Thanks in advance! Patrick

回答(1 个)

Manan Mishra
Manan Mishra 2018-1-8
This error seems to be caused due to some issue with the following folder:
"(matlabroot)\examples\ident_featured"
I was able to reproduce the error on my end by removing this folder from the installation directory.
The error faced could be due to a faulty installation or manual changes made to the above folder.
You can try uninstalling and reinstalling MATLAB and check if the error is resolved.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by