Friday, July 31, 2009

demo

demos via Help browser

Syntax

  • demo
    demo subtopic
    demo subtopic category

Description

demo opens the Demos panel in the Help browser. In the left pane, expand the listing for a product area (for example, MATLAB). Within that product area, expand the listing for a product or product category (for example, MATLAB Graphics). Select a specific demo from the list (for example, Visualizing Sound). In the right pane, view instructions for using the demo.

For platforms that do not support Java GUIs, the demos are presented in a non-Java interface. To run a demo from the command line, type the demo name. For playshow demos, that is those demos in which the H1 line begins with two comment symbols (%%), type playshow followed by the demo name.

demo subtopic opens the Demos panel in the Help browser with the specified subtopic expanded. Subtopics are matlab, toolbox, simulink, and blockset.

demo subtopic product opens the Demos panel in the Help browser to the specified product or category within the subtopic.

Examples

Accessing Toolbox Demos

To find the demos relating to the Communications Toolbox, type

  • demo toolbox communication

The Help browser opens to the Demos panel with the Toolbox subtopic expanded and with the Communications product highlighted and expanded to show the available demos.

Accessing the Simulink Automotive Demos

To accesses the automotive demos within Simulink, type

  • demo simulink automotive

The Demos panel opens with the Simulink subtopic and Automotive category expanded.

Running a Demo from the Command Line

Type

  • vibes

to run a visualization demonstration showing an animated L-shaped membrane.

Running a Playshow Demo from the Command Line

Type

  • quake

to run an earthquake data demo. Not much appears to happen. This is because quake is a playshow demo. Verify this by viewing the M-file, quake.m, for example, by typing

  • edit quake

The first line, that is, the H1 line for quake is

  • %% Loma Prieta Earthquake

The %% indicates that quake is a playshow demo. So to run it, type

  • playshow quake
and the earthquake demo runs.

No comments:

Post a Comment