M-Files

All of the M-files used in examples and in generating figures for this textbook are available here. You can download a zipped file containing all of the files, or you can download the files individually by clicking on them.

The files included at this site are M-files that are used in the text for examples and for creating figures. The M-files were originally written using the professional version of MATLAB (ver.  7.01) with the Control Systems Toolbox (ver. 6.1), the Signal Processing Toolbox (ver. 6.2.1), and the Symbolic Math Toolbox (ver. 3.1) or using the Student Edition of MATLAB (ver. 7.0).  

Description of Files:

Some of the M-files are generic so that the filenames indicate their function. These files are

 dft.m  Discrete Fourier Transform
 idft.m  Inverse Discrete Time Fourier Transform
 contfft.m  Use of FFT to compute Continuous-Time Fourier Transform
 hybrid.m  Simulation of continuous-time system and digital controller
 recur.m  Computes solution of difference equations

The rest of the M-files correspond to specific examples or figures in the text. For example, ex2_4.m is an M-file of commands that are used in Example 2.4 of the textbook, and fig1_12.m is an M-file that was used to generate Figure 1.12.
 
The files listed above and below can be downloaded individually by first clicking on the filename and then saving it to your local machine. Alternately, they are available in a zipped format that can be downloaded from FOSAS.zip. Download the zipped file then expand it in a directory that you can add to your MATLAB path.
 

Chapter 1:

ex1_3.m
ex1_4.m
fig1_10.m
fig1_12.m
fig1_14.m
fig1_18.m

Chapter 2:

ex2_4.m
ex2_5.m
ex2_11.m
ex2_12.m
ex2_16.m
fig2_7.m
fig2_8.m
fig2_9.m

Chapter 3:

Chapter 4:

Chapter 5:

Chapter 6:

 ex6_3  ex6_21  ex6_34
 ex6_17  ex6_23  ex6_35
 ex6_18  ex6_26  ex6_36
     

Chapter 7:

 ex7_16.m  ex7_20.m  fig7_11.m
 ex7_17.m  ex7_22.m  fig7_12.m
 ex7_18.m  fig7_10.m  fig7_13.m

Chapter 8:

 ex8_6.m  ex8_16.m  fig8_20.m
 ex8_7.m  ex8_19.m  fig8_22.m
 ex8_8.m  ex8_21.m  fig8_25.m
 ex8_9.m  ex8_22.m  fig8_26.m
 ex8_10.m  ex8_24.m  fig8_29.m
 ex8_11.m  ex8_25.m  fig8_30.m
 ex8_12.m  ex8_26.m  fig8_36.m
 ex8_13.m  ex8_27.m  fig8_38.m
 ex8_15.m  fig8_18.m  fig8_39.m
 

Chapter 9:

Chapter 10:

Chapter 11: