These pages are a work in progress. A ``Not Finished'' in the outline indicates that part or all of the detailed information is missing. Before starting you should know how to download the examples from these pages
- An Introduction to MATLAB
- Starting and stopping
- Orientation: Windows and such (Not Finished)
- Command window
- Figure window(s)
- Editor window(s)
- Help window(s)
- Using MATLAB as a calculator
- Assigning values to variables
- Using MATLAB's built-in functions
- Using on-line help
- Suppressing output with the semicolon
- Setting the MATLAB path
- MATLAB Variables
- scalars
- Creating
- Assigning values
- Scalar operations
- vectors
- Creating
- Assigning values
- Addressing individual elements
- Colon notation
- Vector operations
- matrices (Not Finished)
- creating
- assigning values
- addressing individual elements
- colon notation
- matrix operations
- Strings (Not Finished)
- creating
- assigning values
- addressing individual elements
- colon notation
- string operations
- Plotting
- Line plots
- The basic
plot
command- A simple line plot
- Logarithmic axis scaling
- Symbol plots
- Choosing symbol and line types
- A simple symbol plot
- Multiple curves on the same plot
- Plotting the data
- Labelling it with the
legend
command- Loading Data into MATLAB for Plotting plots
- The
load
command- More flexible data import with the
readColData
command- Finishing Touches (Not Finished)
- Controlling the axis limits
- Multiple plots in a figure window
- Saving plots to a file
- Contour Plots (Not Finished)
- Surface Plots (Not Finished)
- Vector Plots (Not Finished)
- Programming MATLAB
- Scripts
- Scripts versus Functions
- Creating a script m-file
- Using (and abusing) scripts
- Side effects on the MATLAB workspace
- MATLAB Functions -- The Basics
- Functions versus Scripts
- Anatomy of a MATLAB function
- Calling MATLAB Functions
- Local Variables
- Flow Control
- MATLAB Functions -- Intermediate Features (Not Finished)
- Variable numbers of input and output parameters
- Global variables
- Debugging MATLAB Functions (Not Finished)
- Built-in debugging commands
- Debugging Strategies
- Improving the Speed of MATLAB Calculations
- Using vector operations instead of loops
- Pre-allocating memory for vectors and matrices