| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
As an alternative to the echodemo function, select the demo in the Help browser and click the Run in the Command Window link.
echodemo filename
echodemo('filename', cellindex)
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 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.
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.
Review Workspace Before Running Demos and Code in Examples
![]() | echo | edgeAttachments (TriRep) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |