Testing my Mathematica DSP package
copyright Nasser M. Abbasi
Last updated Nov 14, 2010
In[403]:=
In[404]:=
matrix2DredBlackPositions
In[363]:=
In[388]:=
Out[394]//MatrixForm=
In[395]:=
Out[401]//MatrixForm=
matrix2DLexOrdering
In[402]:=
In[329]:=
Out[329]//MatrixForm=
In[330]:=
Out[331]//MatrixForm=
In[332]:=
Out[332]//MatrixForm=
In[336]:=
Out[336]//MatrixForm=
Out[338]//MatrixForm=
In[339]:=
Out[339]//MatrixForm=
In[340]:=
Out[340]//MatrixForm=
Out[342]//MatrixForm=
In[343]:=
Out[343]//MatrixForm=
centerImageData
diagonalBlockMatrix
poissonMatrixOnSquareDirichlet
diagonalDominantMatrixQ
numItsec
linspace
str
formatBinary
toTwoComplement
toOffsetBinary
toSignMagnitude
toOnesComplement
| 0.9375 | 0111 |
| 0.875 | 0111 |
| 0.8125 | 0110 |
| 0.75 | 0110 |
| 0.6875 | 0110 |
| 0.625 | 0101 |
| 0.5625 | 0100 |
| 0.5 | 0100 |
| 0.4375 | 0100 |
| 0.375 | 0011 |
| 0.3125 | 0010 |
| 0.25 | 0010 |
| 0.1875 | 0010 |
| 0.125 | 0001 |
| 0.0625 | 0000 |
| 0 | 0000 |
| -0.0625 | 1111 |
| -0.125 | 1110 |
| -0.1875 | 1101 |
| -0.25 | 1101 |
| -0.3125 | 1101 |
| -0.375 | 1100 |
| -0.4375 | 1011 |
| -0.5 | 1011 |
| -0.5625 | 1011 |
| -0.625 | 1010 |
| -0.6875 | 1001 |
| -0.75 | 1001 |
| -0.8125 | 1001 |
| -0.875 | 1000 |
| -0.9375 | 1000 |
| -1. | 1000 |
makePulseTrain
fcPulseTrain
get nth fourier series complex coeff
| -4 | 0 |
| -3 | |
| -2 | 0 |
| -1 | |
| 0 | |
| 1 | |
| 2 | 0 |
| 3 | |
| 4 | 0 |
Function to obtain Fourier series approximation given fundemantal period and complex fourier coefficients 0..N-1
test on a square pulse
numIt
getButterworthPolynomial
Generate butterworth H(s) given order and cuttoff
test1
test2
test3
test4 find normalized Butterworth
butterd
butterworth digital filter design
test1
test2
getPositiveAndNegativeTerms
butterToLowPass
test1
make a normalized butter low pass analog filter of order 4
convert the cut off frequency to a new cutoff frequency
Plot the magnitude spectrums
butterToHighPass
test1
make a normalized butter low pass analog filter of order 4
convert to high pass
Plot the magnitude spectrums
butterToBandPass
test1
make a normalized butter low pass analog filter of order 4
convert to band pass
Plot the magnitude spectrums
butterToBandStop
test1
make a normalized butter low pass analog filter of order 4
convert to band stop
Plot the magnitude spectrums
plotFourierTransform
Funtion to divide polynomial by powers of variable and keep powers in form
test
Function to convert low pass digital filter to high pass using frequency transformation
test
test2
Function to convert low pass digital filter to bandpass digital filter using frequency transformation
test
Function to convert low pass digital filter to bandstop digital filter by frequency transformation
test