# demo

## Purpose

Demonstrate some of MATLAB's capabilities.

## Synopsis

    demo
    demo(n)
    demo('all')
    demo('inf')

## Description

`demo`, by itself, presents a menu of demos.

`demo(n)` runs the `n`-th demo.

`demo('all')` runs each demo once.

`demo('inf')` runs forever, looping repeatedly through all the demos.

The M-files accessed from the demo menu are in the `demos` `toolbox` directory. Most demo names are of the form `xxxdemo`.

## See Also

    help, lookfor, path, what, who

(c) Copyright 1994 by The MathWorks, Inc.