Getting Started |
|
Demonstration Programs Included with MATLAB
MATLAB includes many demonstration programs that highlight various features and functions. For a complete list of the demos, at the command prompt type
help demos
To view a specific file, for example, airfoil
, type
edit airfoil
To run a demonstration, type the filename at the command prompt. For example, to run the airfoil demonstration, type
airfoil
Note Many of the demonstrations use multiple windows and require you to press a key in the MATLAB Command Window to continue through the demonstration.
The following tables list some of the current demonstration programs that are available, organized into these categories:
- Matrix demos
- Numeric demos
- Visualization demos
- Language demos
- ODE suite demos
- Gallery demos
- Game demos
- Miscellaneous demos
- Helper function demos
.
MATLAB Matrix Demonstration Programs
airfoil
|
Graphical demonstration of sparse matrix from NASA airfoil.
|
buckydem
|
Connectivity graph of the Buckminster Fuller geodesic dome.
|
delsqdemo
|
Finite difference Laplacian on various domains.
|
eigmovie
|
Symmetric eigenvalue movie.
|
eigshow
|
Graphical demonstration of matrix eigenvalues.
|
intro
|
Introduction to basic matrix operations in MATLAB.
|
inverter
|
Demonstration of the inversion of a large matrix.
|
matmanip
|
Introduction to matrix manipulation.
|
rrefmovie
|
Computation of reduced row echelon form.
|
sepdemo
|
Separators for a finite element mesh.
|
sparsity
|
Demonstration of the effect of sparsity orderings.
|
svdshow
|
Graphical demonstration of matrix singular values.
|
MATLAB Numeric Demonstration Programs
bench
|
MATLAB benchmark.
|
census
|
Prediction of the U.S. population in the year 2000.
|
e2pi
|
Two-dimensional, visual solution to the problem "Which is greater, e or e?"
|
fftdemo
|
Use of the FFT function for spectral analysis.
|
fitdemo
|
Nonlinear curve fit with simplex algorithm.
|
fplotdemo
|
Demonstration of plotting a function.
|
funfuns
|
Demonstration of functions operating on other functions.
|
lotkademo
|
Example of ordinary differential equation solution.
|
quaddemo
|
Adaptive quadrature.
|
quake
|
Loma Prieta earthquake.
|
spline2d
|
Demonstration of ginput and spline in two dimensions.
|
sunspots
|
Demonstration of the fast Fourier transform (FFT) function in MATLAB used to analyze the variations in sunspot activity.
|
zerodemo
|
Zero finding with fzero .
|
MATLAB Visualization Demonstration Programs
colormenu
|
Demonstration of adding a colormap to the current figure.
|
cplxdemo
|
Maps of functions of a complex variable.
|
earthmap
|
Graphical demonstrations of earth's topography.
|
graf2d
|
Two-dimensional XY plots in MATLAB.
|
graf2d2
|
Three-dimensional XYZ plots in MATLAB.
|
grafcplx
|
Demonstration of complex function plots in MATLAB.
|
imagedemo
|
Demonstration of MATLAB's image capability.
|
imageext
|
Demonstration of changing and rotating image colormaps.
|
lorenz
|
Graphical demonstration of the orbit around the Lorenz chaotic attractor.
|
penny
|
Several views of the penny data.
|
vibes
|
Vibrating L-shaped membrane movie.
|
xfourier
|
Graphical demonstration of Fourier series expansion.
|
xpklein
|
Klein bottle demo.
|
xpsound
|
Demonstration of MATLAB's sound capability.
|
MATLAB Language Demonstration Programs
graf3d
|
Demonstration of Handle Graphics for surface plots.
|
hndlaxis
|
Demonstration of Handle Graphics for axes.
|
hndlgraf
|
Demonstration of Handle Graphics for line plots.
|
xplang
|
Introduction to the MATLAB language.
|
MATLAB ODE Suite Demonstration Programs
a2ode
|
Stiff problem, linear with real eigenvalues.
|
a3ode
|
Stiff problem, linear with real eigenvalues.
|
b5ode
|
Stiff problem, linear with complex eigenvalues.
|
ballode
|
Equations of motion for a bouncing ball used by BALLDEMO .
|
besslode
|
Bessel's equation of order 0 used by BESSLDEMO .
|
brussode
|
Stiff problem, modelling a chemical reaction (Brusselator).
|
buiode
|
Stiff problem, analytical solution due to Bui.
|
chm6ode
|
Stiff problem CHM6 from Enright and Hull.
|
chm7ode
|
Stiff problem CHM7 from Enright and Hull.
|
chm9ode
|
Stiff problem CHM9 from Enright and Hull.
|
d1ode
|
Stiff problem, nonlinear with real eigenvalues.
|
fem1ode
|
Stiff problem with a time-dependent mass matrix.
|
fem2ode
|
Stiff problem with a time-independent mass matrix.
|
gearode
|
Stiff problem due to Gear as quoted by van der Houwen.
|
hb1ode
|
Stiff problem 1 of Hindmarsh and Byrne.
|
hb2ode
|
Stiff problem 2 of Hindmarsh and Byrne.
|
hb3ode
|
Stiff problem 3 of Hindmarsh and Byrne.
|
odedemo
|
Demonstration of the ODE suite integrators.
|
orbitode
|
Restricted 3 body problem used by ORBITDEMO .
|
orbt2ode
|
Nonstiff problem D5 of Hull et al.
|
rigidode
|
Euler equations of a rigid body without external forces.
|
sticode
|
Spring-driven mass stuck to surface, used by STICDEMO .
|
vdpode
|
Parameterizable van der Pol equation (stiff for large µ).
|
MATLAB Gallery Demonstration Programs
cruller
|
Graphical demonstration of a cruller.
|
klein1
|
Graphical demonstration of a Klein bottle.
|
knot
|
Tube surrounding a three-dimensional knot.
|
logo
|
Graphical demonstration of the MATLAB L-shaped membrane logo.
|
modes
|
Graphical demonstration of 12 modes of the L-shaped membrane.
|
quivdemo
|
Graphical demonstration of the quiver function.
|
spharm2
|
Graphical demonstration of spherical surface harmonic.
|
tori4
|
Graphical demonstration of four-linked, unknotted tori.
|
finddemo
|
Command that finds available demos for individual toolboxes.
|
helpfun
|
Utility function for displaying help text conveniently.
|
membrane
|
The MathWorks logo.
|
peaks
|
Sample function of two variables.
|
pltmat
|
Command that displays a matrix in a figure window.
|
MATLAB Game Demonstration Programs
bblwrap
|
Bubblewrap.
|
life
|
Conway's Game of Life.
|
soma
|
Soma cube.
|
xpbombs
|
Minesweeper game.
|
MATLAB Miscellaneous Demonstration Programs
codec
|
Alphabet transposition coder/decoder.
|
crulspin
|
Spinning cruller movie.
|
logospin
|
Movie of the MathWorks logo spinning.
|
makevase
|
Demonstration of a surface of revolution.
|
quatdemo
|
Quaternion rotation.
|
spinner
|
Colorful lines spinning through space.
|
travel
|
Traveling salesman problem.
|
truss
|
Animation of a bending bridge truss.
|
wrldtrv
|
Great circle flight routes around the globe.
|
xphide
|
Visual perception of objects in motion.
|
xpquad
|
Superquadrics plotting demonstration.
|
MATLAB Helper Functions Demonstration Programs
bucky
|
Graph of the Buckminster Fuller geodesic dome.
|
cmdlnbgn
|
Set up for command line demos.
|
cmdlnend
|
Clean up after command line demos.
|
cmdlnwin
|
Demo gateway routine for running command line demos.
|
finddemo
|
Command that finds available demos for individual toolboxes.
|
helpfun
|
Utility function for displaying help text conveniently.
|
membrane
|
The MathWorks logo.
|
peaks
|
Sample function of two variables.
|
pltmat
|
Command that displays a matrix in a figure window.
|
Getting More Information
The MathWorks Web site (www.mathworks.com
) contains numerous M-files that have been written by users and MathWorks staff. These are accessible by selecting Downloads. Also, Technical Notes, which is accessible from our Technical Support Web site (www.mathworks.com/support
), contains numerous examples on graphics, mathematics, API, Simulink, and others.
 | Function Functions | |