Using M-files in Matlab
Getting help in Matlab
Conventions used in the tutorials
About the authors
Matlab is an interactive program for numerical computation and data visualization; it is used extensively by control engineers for analysis and design. There are many different toolboxes available which extend the basic functions of Matlab into different application areas; in these tutorials, we will make extensive use of the Control Systems Toolbox. Matlab is supported on Unix, Macintosh, and Windows environments; a student version of Matlab is available for personal computers. For more information on Matlab, contact the Mathworks.
There are slightly different things you need to know for each platform.
You can either type commands directly into matlab, or put all of the commands that you will need together in an m-file, and just run the file. If you put all of your m-files in the same directory that you run matlab from, then matlab will always find them.
for more information on any given command. You do need to know the name of the command that you are looking for; a list of the all the ones used in these tutorials is given in the command listing; a link to this page can be found at the bottom of every tutorial and example page.
The idea behind these tutorials is that you can view them in one window while running Matlab in another window. You should be able to re-do all of the plots and calculations in the tutorials by cutting and pasting text from the tutorials into Matlab or an m-file.
Throughout the tutorials, we will use the following conventions for Matlab input and output.
If you find that the font is too hard to read, you can change the default font in your browser (under the Preferences menu in Netscape).Matlab input commands will be displayed like this so they can easily be copied and and pasted into the Matlab window. Matlab's output will be displayed directly beneath like this.
These tutorials were developed by Professor Bill Messner of the Department of Mechanical Engineering at Carnegie Mellon University and Professor Dawn Tilbury of the Department of Mechanical Engineering and Applied Mechanics at the University of Michigan. Funding was provided by the National Science Foundation under grant number DUE 9554819. Most of the development work was done by undergraduate students Luis Oms (CMU), Joshua Pagel (UM), Yanjie Sun (UM), and Munish Suri (CMU). A prototype set of tutorials, developed by Prof. Tilbury, won an Undergraduate Computational Science Award from the UCES Project, sponsored by the U.S. Department of Energy through the Ames Laboratory.
All Rights Reserved. Permission is hereby granted for the recipient to make copies and use this software for its own internal purposes only, under the conditions that this copyright message is retained intact and that no modifications are made to the software. Recipients of this software may not re-distribute this software outside of their own institution. Permission to market this software commercially, to include this product as part of a commercial product, or to make a derivative work for commercial purposes, is explicitly prohibited. All other uses are also prohibited unless authorized in writing by the Regents of the University of Michigan.
This software is offered without warranty. The Regents of the University of Michigan disclaim all warranties, express or implied, including but not limited to the implied warranties of merchantability and fitness for any particular purpose. In no event shall the Regents of the University of Michigan be liable for loss or damage of any kind, including but not limited to incidental, indirect, consequential, or special damages.