Development Environment |
Viewing Demos
To see the available demos for the products you have installed:
Some demos are not available from the Help browser. See for instructions to access and run them.
Using Demos
After you select a demo, information about it appears in the display pane. For the example shown, MATLAB -> Language -> Multi-dimensional Arrays, you can
nddemo.m
. The M-file opens in the MATLAB Editor.
nddemo
, the following appears. Follow the instructions shown to continue running the demo. In this example, click Start>>.
Notes
Some Help browser features do not apply to demos:
lookfor
function to search for code in M-file demo files.
Function Alternative
To view the Demos in the Help browser, type demo
in the Command Window. You can go directly to the demos for a specific product. For example
opens the Demos listing for the Signal Processing Toolbox.
To run one of the demos, you can type the demo name at the command line. For example, type
to run a visualization demonstration showing an animated L-shaped membrane.
Running Playshow Demos. To run playshow demos from the command line, type playshow
followed by the demo name.
For example, if you type quake
, the demo does not run. View the H1 line for quake.m
, that is, the first comment line. It begins with two comment symbols (%%
), indicating that quake
is a playshow demo.
Therefore, type playshow quake
to run the demo.
See Also
See the Examples listing for each product in the Contents pane of the Help browser. It lists the major examples included in the documentation, some of which include sample code you can view, run, or copy.
Running Demonstrations | Favorites |