An Introduction to MATLAB

Preliminary ........................................................................................................................ 1 Basics ............................................................................................................................... 1 ICE .................................................................................................................................. 4 Vectors ............................................................................................................................. 5 ICE .................................................................................................................................. 9 Plotting ........................................................................................................................... 10 ICE ................................................................................................................................ 12 Matrices .......................................................................................................................... 13 ICE ................................................................................................................................ 17 Matrix/Vector and Matrix/Matrix Operations ......................................................................... 17 ICE ................................................................................................................................ 20 Flow Control .................................................................................................................... 20 ICE ................................................................................................................................ 26 Functions ......................................................................................................................... 26 ICE ................................................................................................................................ 29 Variable Scope ................................................................................................................. 29 ICE ................................................................................................................................ 31 File I/O ........................................................................................................................... 32 ICE ................................................................................................................................ 34 Parallel Computing ........................................................................................................... 35 ICE ................................................................................................................................ 38