Mathematica definitions

Load needed packages for this notebook

[Graphics:../Images/index_gr_1.gif]

Set up defaults

Turn off annoying warning messages
[Graphics:../Images/index_gr_2.gif]
Set default options for specific functions
[Graphics:../Images/index_gr_3.gif]

Visualization functions

Fix time variable for sampled signals
[Graphics:../Images/index_gr_4.gif]
Generate periodic waveform from one period

PeriodicSignal[f, {dmin, dmax}, {t, min, max}] generates a periodic waveform for the interval [min, max]. It is assumed that one period of the function f(t) is defined over the interval [dmin, dmax].

[Graphics:../Images/index_gr_5.gif]
Plot periodic waveforms

PeriodicPlot[f, {dmin, dmax}, {t, min, max}, opts] plots a a periodic waveform for the interval [min, max]. It is assumed that one period of the function f(t) is defined over the interval [dmin, dmax]. The 'opts' argument passed plotting options to the Mathematica function Plot[ ].

[Graphics:../Images/index_gr_6.gif]
Plot discrete-time signal as sequence of amplitude lines
[Graphics:../Images/index_gr_7.gif]

Fourier rearrange

FourierRearrange[fft] rearranges the result of an FFT (Mathematica function Fourier[ ]), to a easier to visualize the spectrum represented by 'fft'. The length of the list 'fft' is assumed to be even; if it is not, the last term in 'fft' is dropped.

[Graphics:../Images/index_gr_8.gif]

Short-cut functions

Dirac delta function
[Graphics:../Images/index_gr_9.gif]
Unit step function
[Graphics:../Images/index_gr_10.gif]
Pulse of width [Graphics:../Images/index_gr_11.gif]
[Graphics:../Images/index_gr_12.gif]

Hack to plot [Graphics:../Images/index_gr_13.gif]

[Graphics:../Images/index_gr_14.gif]

Sampler (CT to DT converter)

[Graphics:../Images/index_gr_15.gif]


Converted by Mathematica      March 24, 2003