Desktop Tools and Development Environment |
MATLAB and related products include demos that you can access from the Help browser Demos pane. There are three basic kinds of demos:
The M-file code for the demos (except video tutorials) is available for you to view and copy for use in your own applications.
See also Examples for each product in the Contents pane. These examples are similar to demos but are integrated in the documentation.
Using Demos
To access demos for the products you have installed,
demo
function, or from the Help menu for some tools.
nesteddemo
. The M-file opens in the MATLAB Editor/Debugger.
When you run nesteddemo
, the following M-file GUI demo appears, and you continue with the demo by clicking Start >>.
Notes About Demos
Some Help browser features do not apply to demos:
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
demo toolbox signal
opens the Demos listing for the Signal Processing Toolbox.
To run a demo, type the demo name at the command line. For example, type
vibes
to run a visualization demonstration showing an animated L-shaped membrane.
Running Published M-File Demos. To run published M-file demos from the command line, type playshow
followed by the demo name. To determine if a demo is a published M-file type, view the H1 line for the demo M-file, that is, the first comment line. If it begins with two comment symbols (%%
), it is a published M-file demo. For example, the first line in nesteddemo
begins with two comment symbols:
%% Nested Function Examples
Therefore, type playshow nesteddemo
to run the demo.
Adding Your Own Demos
You can add your own demos so they appear in the Demos pane. For details, see Adding Your Own Toolboxes to the Development Environment in the online documentation.
Find Text in Displayed Pages | Preferences for the Help Browser |
© 1994-2005 The MathWorks, Inc.