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

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

Answers (1)

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.

Categories

Asked:

on 3 Jan 2018

Commented:

on 22 Feb 2019

Community Treasure Hunt

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

Start Hunting!