echodemo - Run M-file demo step-by-step in Command Window

GUI Alternatives

As an alternative to the echodemo function, select the demo in the Help browser Demos tab and click the Run in the Command Window link.

Syntax

echodemo filename
echodemo('filename', cellindex)

Description

echodemo filename runs the M-file demo filename step-by-step in the Command Window. At each step, follow links in the Command Window to proceed. Depending on the size of the Command Window, you might have to scroll up to see the links. The script filename was created in the Editor using cells. (The associated HTML demo file for filename that appears in the Help browser Demos pane was created using the MATLAB cell publishing feature.) The link to filename also shows the current cell number, n, and the total number of cells, m, as n/m, and when clicked, opens filename in the Editor. To end the demo, click the Stop link.

echodemo('filename', cellindex) runs the M-file type demo filename, starting with the cell number specified by cellindex. Because steps prior to cellindex are not run, this statement might produce an error or unexpected result, depending on the demo.

Examples

echodemo quake runs the MATLAB Loma Prieta Earthquake demo.

echodemo ('quake', 6) runs the MATLAB Loma Prieta Earthquake demo, starting at cell 6.

echodemo ('intro', 3) produces an error because cell 3 of the MATLAB demo intro requires data created when cells 1 and 2 run.

See Also

demo, helpbrowser

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS