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. 4.0) with the Control Systems Toolbox (ver. 3.0) and the Signal Processing Toolbox (ver. 2.0), and are compatible with the Student Edition of MATLAB (ver. 4.0). They have been modified so that they are also compatible with MATLAB 5.0 with the Control System Toolbox (ver. 4.0) and the Signal Processing Toolbox (ver. 4.0), and the Student Version of MATLAB 5.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
 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_3.m is an M-file of commands that are used in Example 2.3 of the textbook, and fig1_13.m is an M-file that was used to generate Figure 1.13.
 
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:

fig1_13.m
fig1_15.m
fig1_17.m
fig1_21.m
fig1_31.m

 

Chapter 2:

Chapter 3:

Chapter 4:

Chapter 5:

Chapter 6:

 ex6_1  ex6_11  PAM1
 ex6_2  ex6_12  PAM2
 ex6_3  ex6_13  FSK
 ex6_5  fig6_40  

Chapter 7:

 ex7_8.m  ex7_11.m  ex7_16.m
 ex7_9.m  ex7_12.m  fig7_2.m
 ex7_10.m  ex7_15.m  fig7_5.m

Chapter 8:

Chapter 9:

 ex9_7.m  ex9_17.m  fig9_20.m
 ex9_8.m  ex9_20.m  fig9_22.m
 ex9_9.m  ex9_22.m  fig9_25.m
 ex9_10.m  ex9_23.m  fig9_26.m
 ex9_11.m  ex9_25.m  fig9_29.m
 ex9_12.m  ex9_26.m  fig9_30.m
 ex9_13.m  ex9_27.m  fig9_36.m
 ex9_14.m  ex9_28.m  fig9_38.m
 ex9_16.m  fig9_18.m  fig9_39.m
 

Chapter 10:

Chapter 11:

Chapter 12:

Chapter 13: