Mathematics of the Discrete Fourier Transform (DFT)



<< Previous page  TOC  INDEX  Next page >>


Mathematica for Selected Plots

The Mathematica code for producing Fig. 5.1 (minus the annotations which were done using NeXT Draw and EquationBuilder from Lighthouse Design) is

    Plot[10 Sin[2 Pi 2.5 t + Pi/4],{t,0,1},
        PlotLabel->"10 Sin[2 Pi 2.5 t + Pi/4]",
        PlotPoints->500,
        AxesLabel->{" Sec", "Amp."}];

The Mathematica code for Fig. 5.2 is

Show[
    Plot[Sin[2 Pi 2.5 t],{t,-0.1,1.1},
        PlotPoints->500,
        AxesLabel->{`` Time (Sec)'', ``Amplitude''}],
    Plot[Cos[2 Pi 2.5 t],{t,-0.1,1.1},
        PlotPoints->500,
        PlotStyle->Dashing[{0.01,0.01}]
];

For the complex sinusoid plots (Fig. 5.7 and Fig. 5.9), see the Mathematica notebookComplexSinusoid.nbon Craig Sapp's web pageof Mathematica notebooks. (The packageSCMTheory.mis required.)

<< Previous page  TOC  INDEX  Next page >>

Back to Hardware Guides
"Music 320 Background Reader" by Julius O. Smith III, (Course Background Reader, Music 320). Copyright © 2001-01-02 by Julius O. Smith III. - Center for Computer Research in Music and Acoustics (CCRMA), Department of Electrical Engineering, Stanford University. This is a modified HTML version reproduced by permission.
| TXT | TXT+
Unless otherwise indicated, the contents of this site are copyright © Nicola Asuni - Tecnick.com s.r.l.
Tecnick.com s.r.l. - Sede Legale: Via Della Pace, 11 – 09044 – Quartucciu (CA) – ITALY - Capitale Sociale € 10.000,00 i.v. - P. IVA e C.F.: 02574420929 - C.C.I.A.A.: CA-2000-19195 - R.E.A.: 208980

Powered by Tecnick.com AIOCP (All In One Control Panel) GetJava Download Button
 
Technick.net - Tons of Hardware Information





Bookmark and Share