
6 Editing and Debugging M-Files
Demos and Examples
MATLAB and its toolboxes include demonstrationprograms.Youcanviewthe
code in the demos and copy it for use in your own M-files. To see the demos,
type
demo, which opens the Help browser to the Demos pane. For more
information about demos, see “Demos in the Help Browser” on page 4-31.
There are also code examples in the onl ine documentation. To see a list of
examples for a product, type
helpbrowser to open the Help browser. In the
Contents pane, click + for a product to view the help topics, and then select
the
Examples entry.
File Exchange
The MathWorks Web site features a user-contributed code library, from which
you can download free M-files contributed by users and developers of MATLAB,
Simulink, and related products. To view the files available to download, go
to the M ATLAB Central File Exchange page on the MathWorks Web site,
http://www.mathworks.com/matlabcentral/fileexchange/index.jsp,or
access it via the Help > Web menu in any deskto p component.
6-4
Commentaires sur ces manuels