MATLAB: Want the code generation examples open

examples will not open.simulinksimulink coder

openExample('simulinkcoder/GettingStartedSimulinkCoderExample')
Undefined function or variable 'openExample'.
What is the issue here, are these examples no longer supported?
I have R2015b and the example was from a much earlier Matlab, I tried other methods to open it and none worked, I also did not see it under the demos help functions.

Best Answer

It looks like the openExample function was introduced in release R2016a. My guess is that you're using an older release but referring to the online documentation, or to some instructions that were written for use with release R2016a. If that is the case, find the corresponding version of the page in the documentation that was installed on your machine for the commands that will work in your installation or contact the author of those instructions for the corresponding instructions for the release you have installed.