M.1
PMcL Contents Index
2015 MATLAB® – A Tutorial
MATLAB
®
– A Tutorial
Contents
Introduction .................................................................................................... M.3
1.1 Invoking MATLAB .................................................................................. M.3
1.2 Entering Simple Statements ...................................................................... M.4
1.3 Formatting Output .................................................................................... M.5
1.4 Entering Simple Vectors ........................................................................... M.6
1.5 Entering Simple Matrices ......................................................................... M.7
1.6 Generating Vectors ................................................................................... M.8
1.7 M-Files: Scripts and Functions ................................................................. M.9
1.8 Scripts ....................................................................................................... M.9
1.9 Functions .................................................................................................. M.9
1.10 Creating a Script ................................................................................... M.10
1.11 Debugging your Script.......................................................................... M.11
1.12 Clearing the Workspace ........................................................................ M.12
1.13 Using Vectors in Functions .................................................................. M.12
1.14 Plotting.................................................................................................. M.13
1.15 Help ...................................................................................................... M.14
1.16 Plotting on a New Figure ...................................................................... M.14
1.17 Changing Figure Numbers .................................................................... M.15
1.18 Clearing Old Figures ............................................................................ M.15
1.19 Script Comments .................................................................................. M.15
1.20 Changing the Plot Axes ........................................................................ M.17
1.21 Adding Axis Labels .............................................................................. M.17
1.22 Adding a Plot Title ............................................................................... M.17
1.23 Creating Subplots ................................................................................. M.17
1.24 Functions .............................................................................................. M.18
1.25 Creating a Graph Function ................................................................... M.20
1.26 Vector Operations ................................................................................. M.22
1.27 The FFT ................................................................................................ M.26
1.28 FFT Samples ......................................................................................... M.27