Appendix C: Mathematica/Matlab Examples

GUIDE: Mathematics of the Discrete Fourier Transform (DFT) - Julius O. Smith III. Appendix C: Mathematica/Matlab Examples

NOTE: THIS DOCUMENT IS OBSOLETE, PLEASE CHECK THE NEW VERSION: "Mathematics of the Discrete Fourier Transform (DFT), with Audio Applications --- Second Edition", by Julius O. Smith III, W3K Publishing, 2007, ISBN 978-0-9745607-4-8. - Copyright © 2017-09-28 by Julius O. Smith III - Center for Computer Research in Music and Acoustics (CCRMA), Stanford University

<< Previous page  TOC  INDEX  Next page >>

Appendix C: Mathematica/Matlab Examples

Below is the Mathematica code for creating the aliasing example in Fig. 8.9.

aliasShow[freq_, srate_, options___] :=
   SeqPlot[Sin[2 \[Pi] freq t / srate], {t, 0, srate-1},options,
	Continuous->True]

a = aliasShow[1, 10]; b = aliasShow[-9, 10, PlotStyle->RGBColor[1,0,0]]; Show[a, b, AspectRatio->1/3];

<< Previous page  TOC  INDEX  Next page >>