The files on this page allow you to play "what if" games for ten of the figures in the book - that is, by running these files in MATLAB or Octave, you can vary the parameters upon which the figures are based and observe the results.
To use these files, you can either click on the "View" link and then copy and paste the code into an empty MATLAB or Octave script, or you can click on the "Download" link to store the m-file on your computer. When you run each file, one or more menus will pop up to allow you to enter values for several parameters, after which the graphs will be drawn using the data you've input.
And if you want to understand how the code works, you'll find quite a few explanatory comments within the files. This makes the code somewhat difficult to read in plain-text format, but the formatting within MATLAB and Octave should make it a bit easier to separate the commands from the comments.
- View Figure 1.2 MATAB code
- Download Fig 1.2 MATLAB code
- View Figure 1.3 MATLAB code
- Download Fig 1.3 MATLAB code
- View Figure 2.1 MATLAB code
- Download Fig 2.1 MATLAB code
- View Figure 4.5 MATLAB code
- Download Fig 4.5 MATLAB code
- View Figure 4.14 MATLAB code
- Download Fig 4.14 MATLAB code
- View Figure 4.19 MATLAB code
- Download Fig 4.19 MATLAB code
- View Figure 5.2 MATLAB code
- Download Fig 5.2 MATLAB code
- View Figure 5.5 MATLAB code
- Download Fig 5.5 MATLAB code
- View Figure 5.7 MATLAB code
- Download Fig 5.7 MATLAB code
- View Figure 5.12 MATLAB code
- Download Fig 5.12 MATLAB code
- View Figure 1.2 Octave code
- Download Fig 1.2 Octave code
- View Figure 1.3 Octave code
- Download Fig 1.3 Octave code
- View Figure 2.1 Octave code
- Download Fig 2.1 Octave code
- View Figure 4.5 Octave code
- Download Fig 4.5 Octave code
- View Figure 4.14 Octave code
- Download Fig 4.14 Octave code
- View Figure 4.19 Octave code
- Download Fig 4.19 Octave code
- View Figure 5.2 Octave code
- Download Fig 5.2 Octave code
- View Figure 5.5 Octave code
- Download Fig 5.5 Octave code
- View Figure 5.7 Octave code
- Download Fig 5.7 Octave code
- View Figure 5.12 Octave code
- Download Fig 5.12 Octave code