"test_dsp_1.gif"

Testing my Mathematica DSP package

copyright Nasser M. Abbasi
Last updated Nov 14, 2010

In[403]:=

"test_dsp_2.gif"

In[404]:=

"test_dsp_3.gif"

"test_dsp_4.gif"

"test_dsp_5.gif"

matrix2DredBlackPositions

In[363]:=

"test_dsp_6.gif"

"test_dsp_7.gif"

In[388]:=

"test_dsp_8.gif"

Out[394]//MatrixForm=

"test_dsp_9.gif"

In[395]:=

"test_dsp_10.gif"

Out[401]//MatrixForm=

"test_dsp_11.gif"

matrix2DLexOrdering

In[402]:=

"test_dsp_12.gif"

"test_dsp_13.gif"

In[329]:=

"test_dsp_14.gif"

Out[329]//MatrixForm=

"test_dsp_15.gif"

In[330]:=

"test_dsp_16.gif"

Out[331]//MatrixForm=

"test_dsp_17.gif"

In[332]:=

"test_dsp_18.gif"

Out[332]//MatrixForm=

"test_dsp_19.gif"

In[336]:=

"test_dsp_20.gif"

Out[336]//MatrixForm=

"test_dsp_21.gif"

Out[338]//MatrixForm=

"test_dsp_22.gif"

In[339]:=

"test_dsp_23.gif"

Out[339]//MatrixForm=

"test_dsp_24.gif"

In[340]:=

"test_dsp_25.gif"

Out[340]//MatrixForm=

"test_dsp_26.gif"

Out[342]//MatrixForm=

"test_dsp_27.gif"

In[343]:=

"test_dsp_28.gif"

Out[343]//MatrixForm=

"test_dsp_29.gif"

centerImageData

"test_dsp_30.gif"

"test_dsp_31.gif"

"test_dsp_32.gif"

"test_dsp_33.gif"

"test_dsp_34.gif"

"test_dsp_35.gif"

"test_dsp_36.gif"

"test_dsp_37.gif"

"test_dsp_38.gif"

"test_dsp_39.gif"

"test_dsp_40.gif"

"test_dsp_41.gif"

"test_dsp_42.gif"

Graphics:Magnitude spectrum

Graphics:Phase spectrum

diagonalBlockMatrix

"test_dsp_45.gif"

"test_dsp_46.gif"

"test_dsp_47.gif"

"test_dsp_48.gif"

"test_dsp_49.gif"

poissonMatrixOnSquareDirichlet

"test_dsp_50.gif"

"test_dsp_51.gif"

"test_dsp_52.gif"

"test_dsp_53.gif"

"test_dsp_54.gif"

"test_dsp_55.gif"

"test_dsp_56.gif"

"test_dsp_57.gif"

diagonalDominantMatrixQ

"test_dsp_58.gif"

"test_dsp_59.gif"

numItsec

"test_dsp_60.gif"

"test_dsp_61.gif"

"test_dsp_62.gif"

"test_dsp_63.gif"

"test_dsp_64.gif"

"test_dsp_65.gif"

linspace

"test_dsp_66.gif"

"test_dsp_67.gif"

"test_dsp_68.gif"

"test_dsp_69.gif"

"test_dsp_70.gif"

"test_dsp_71.gif"

"test_dsp_72.gif"

"test_dsp_73.gif"

"test_dsp_74.gif"

"test_dsp_75.gif"

"test_dsp_76.gif"

"test_dsp_77.gif"

str

"test_dsp_78.gif"

"test_dsp_79.gif"

"test_dsp_80.gif"

"test_dsp_81.gif"

formatBinary

"test_dsp_82.gif"

"test_dsp_83.gif"

"test_dsp_84.gif"

"test_dsp_85.gif"

"test_dsp_86.gif"

"test_dsp_87.gif"

"test_dsp_88.gif"

"test_dsp_89.gif"

"test_dsp_90.gif"

"test_dsp_91.gif"

"test_dsp_92.gif"

"test_dsp_93.gif"

toTwoComplement

"test_dsp_94.gif"

"test_dsp_95.gif"

"test_dsp_96.gif"

"test_dsp_97.gif"

"test_dsp_98.gif"

"test_dsp_99.gif"

"test_dsp_100.gif"

"test_dsp_101.gif"

"test_dsp_102.gif"

"test_dsp_103.gif"

toOffsetBinary

"test_dsp_104.gif"

"test_dsp_105.gif"

"test_dsp_106.gif"

"test_dsp_107.gif"

"test_dsp_108.gif"

"test_dsp_109.gif"

"test_dsp_110.gif"

"test_dsp_111.gif"

"test_dsp_112.gif"

"test_dsp_113.gif"

"test_dsp_114.gif"

"test_dsp_115.gif"

"test_dsp_116.gif"

toSignMagnitude

"test_dsp_117.gif"

"test_dsp_118.gif"

"test_dsp_119.gif"

"test_dsp_120.gif"

"test_dsp_121.gif"

"test_dsp_122.gif"

"test_dsp_123.gif"

"test_dsp_124.gif"

"test_dsp_125.gif"

"test_dsp_126.gif"

"test_dsp_127.gif"

"test_dsp_128.gif"

"test_dsp_129.gif"

"test_dsp_130.gif"

"test_dsp_131.gif"

"test_dsp_132.gif"

"test_dsp_133.gif"

"test_dsp_134.gif"

"test_dsp_135.gif"

"test_dsp_136.gif"

"test_dsp_137.gif"

"test_dsp_138.gif"

"test_dsp_139.gif"

"test_dsp_140.gif"

toOnesComplement

"test_dsp_141.gif"

"test_dsp_142.gif"

"test_dsp_143.gif"

"test_dsp_144.gif"

"test_dsp_145.gif"

"test_dsp_146.gif"

"test_dsp_147.gif"

"test_dsp_148.gif"

"test_dsp_149.gif"

"test_dsp_150.gif"

"test_dsp_151.gif"

"test_dsp_152.gif"

"test_dsp_153.gif"

"test_dsp_154.gif"

"test_dsp_155.gif"

"test_dsp_156.gif"

"test_dsp_157.gif"

"test_dsp_158.gif"

"test_dsp_159.gif"

"test_dsp_160.gif"

"test_dsp_161.gif"

"test_dsp_162.gif"

"test_dsp_163.gif"

"test_dsp_164.gif"

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

"test_dsp_165.gif"

"test_dsp_166.gif"

"test_dsp_167.gif"

"test_dsp_168.gif"

fcPulseTrain

"test_dsp_169.gif"

"test_dsp_170.gif"

get nth fourier series complex coeff

"test_dsp_171.gif"

-4 0
-3 "test_dsp_172.gif"
-2 0
-1 "test_dsp_173.gif"
0 "test_dsp_174.gif"
1 "test_dsp_175.gif"
2 0
3 "test_dsp_176.gif"
4 0

Function to obtain Fourier series approximation given fundemantal period and complex fourier coefficients 0..N-1

test on a square pulse

"test_dsp_177.gif"

"test_dsp_178.gif"

numIt

"test_dsp_179.gif"

"test_dsp_180.gif"

"test_dsp_181.gif"

"test_dsp_182.gif"

"test_dsp_183.gif"

getButterworthPolynomial

Generate butterworth H(s) given order and cuttoff

test1

"test_dsp_184.gif"

"test_dsp_185.gif"

"test_dsp_186.gif"

test2

"test_dsp_187.gif"

"test_dsp_188.gif"

"test_dsp_189.gif"

test3

"test_dsp_190.gif"

"test_dsp_191.gif"

"test_dsp_192.gif"

test4  find normalized Butterworth

"test_dsp_193.gif"

"test_dsp_194.gif"

"test_dsp_195.gif"

butterd

"test_dsp_196.gif"

"test_dsp_197.gif"

butterworth digital filter design

test1

"test_dsp_198.gif"

"test_dsp_199.gif"

"test_dsp_200.gif"

"test_dsp_201.gif"

"test_dsp_202.gif"

"test_dsp_203.gif"

test2

"test_dsp_204.gif"

"test_dsp_205.gif"

"test_dsp_206.gif"

"test_dsp_207.gif"

"test_dsp_208.gif"

"test_dsp_209.gif"

"test_dsp_210.gif"

"test_dsp_211.gif"

getPositiveAndNegativeTerms

"test_dsp_212.gif"

"test_dsp_213.gif"

"test_dsp_214.gif"

"test_dsp_215.gif"

"test_dsp_216.gif"

butterToLowPass

"test_dsp_217.gif"

"test_dsp_218.gif"

test1

make a normalized butter low pass analog filter of order 4

"test_dsp_219.gif"

"test_dsp_220.gif"

convert the cut off frequency to a new cutoff frequency

"test_dsp_221.gif"

"test_dsp_222.gif"

Plot the magnitude spectrums

"test_dsp_223.gif"

"test_dsp_224.gif"

butterToHighPass

"test_dsp_225.gif"

"test_dsp_226.gif"

test1

make a normalized butter low pass analog filter of order 4

"test_dsp_227.gif"

"test_dsp_228.gif"

convert to high pass

"test_dsp_229.gif"

"test_dsp_230.gif"

"test_dsp_231.gif"

Plot the magnitude spectrums

"test_dsp_232.gif"

"test_dsp_233.gif"

butterToBandPass

"test_dsp_234.gif"

"test_dsp_235.gif"

test1

make a normalized butter low pass analog filter of order 4

"test_dsp_236.gif"

"test_dsp_237.gif"

convert to band pass

"test_dsp_238.gif"

"test_dsp_239.gif"

Plot the magnitude spectrums

"test_dsp_240.gif"

"test_dsp_241.gif"

butterToBandStop

"test_dsp_242.gif"

"test_dsp_243.gif"

test1

make a normalized butter low pass analog filter of order 4

"test_dsp_244.gif"

"test_dsp_245.gif"

convert to band stop

"test_dsp_246.gif"

"test_dsp_247.gif"

Plot the magnitude spectrums

"test_dsp_248.gif"

"test_dsp_249.gif"

plotFourierTransform

"test_dsp_250.gif"

"test_dsp_251.gif"

"test_dsp_252.gif"

"test_dsp_253.gif"

"test_dsp_254.gif"

Funtion to divide polynomial by powers of variable and keep powers in form "test_dsp_255.gif"

"test_dsp_256.gif"

test

"test_dsp_257.gif"

"test_dsp_258.gif"

"test_dsp_259.gif"

"test_dsp_260.gif"

"test_dsp_261.gif"

Function to convert low pass digital filter to high pass using frequency transformation

test

"test_dsp_262.gif"

"test_dsp_263.gif"

"test_dsp_264.gif"

"test_dsp_265.gif"

test2

"test_dsp_266.gif"

"test_dsp_267.gif"

"test_dsp_268.gif"

Function to convert low pass digital filter to bandpass digital filter using frequency transformation

test

"test_dsp_269.gif"

"test_dsp_270.gif"

Function to convert low pass digital filter to bandstop digital filter by frequency transformation

test

"test_dsp_271.gif"

"test_dsp_272.gif"

"test_dsp_273.gif"

"test_dsp_274.gif"

"test_dsp_275.gif"

"test_dsp_276.gif"

"test_dsp_277.gif"

"test_dsp_278.gif"

"test_dsp_279.gif"

"test_dsp_280.gif"

"test_dsp_281.gif"

"test_dsp_282.gif"

"test_dsp_283.gif"

"test_dsp_284.gif"

Spikey Created with Wolfram Mathematica 7.0