digital signal processing and filter design using scilab
play

Digital Signal Processing and Filter Design using Scilab Iman - PowerPoint PPT Presentation

Digital Signal Processing and Filter Design using Scilab Digital Signal Processing and Filter Design using Scilab Iman Mukherjee Department of Electrical Engineering, IIT Bombay December 1, 2010 Iman Mukherjee Digital Signal Processing and


  1. Digital Signal Processing and Filter Design using Scilab Digital Signal Processing and Filter Design using Scilab Iman Mukherjee Department of Electrical Engineering, IIT Bombay December 1, 2010 Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  2. Digital Signal Processing and Filter Design using Scilab Outline 1 Basic signal processing tools Discrete Fourier Transform Fast Fourier Transform Convolution Plotting Group Delay Aliasing 2 Filter Design Non-Recipe Based Recipe Based An Example Application Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  3. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  4. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ The Scilab command ��� [xf] = dft(x,flag); Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  5. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ The Scilab command ��� [xf] = dft(x,flag); x is the time domain representation Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  6. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ The Scilab command ��� [xf] = dft(x,flag); x is the time domain representation xf is the frequency domain representation Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  7. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ The Scilab command ��� [xf] = dft(x,flag); x is the time domain representation xf is the frequency domain representation flag = 1 or -1 Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  8. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ The Scilab command ��� [xf] = dft(x,flag); x is the time domain representation xf is the frequency domain representation flag = 1 or -1 Notice - Cosine is Even Symmetric, hence this 64-point DFT is real with peaks at 4 and 60 (64-4) Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  9. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Discrete Fourier Transform DFT ∞ ∑ 푥 [ 푛 ] 푒 − 푗휔푛 푋 ( 휔 ) = 푛 = −∞ The Scilab command ��� [xf] = dft(x,flag); x is the time domain representation xf is the frequency domain representation flag = 1 or -1 Notice - Cosine is Even Symmetric, hence this 64-point DFT is real with peaks at 4 and 60 (64-4) Faster way - fft ... Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  10. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Fast Fourier Transform FFT Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  11. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Fast Fourier Transform FFT x=fft(a ,-1) or x=fft(a) Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  12. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Fast Fourier Transform FFT x=fft(a ,-1) or x=fft(a) y=fft2(x,n,m) - two-dimension Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  13. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Fast Fourier Transform FFT x=fft(a ,-1) or x=fft(a) y=fft2(x,n,m) - two-dimension x=fft(a,-1,dim,incr) - multidimensional fft Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  14. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Fast Fourier Transform FFT x=fft(a ,-1) or x=fft(a) y=fft2(x,n,m) - two-dimension x=fft(a,-1,dim,incr) - multidimensional fft fftshift(abs(y)) - rearranges the fft output, moving the zero frequency to the center of the spectrum Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  15. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Fast Fourier Transform Exercise 1 Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  16. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Convolution The convol Command With the convol command Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  17. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Convolution The convol Command With the convol command Without the convol command (multiplying in the frequency domain) Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  18. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Convolution Exercise 2 Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  19. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Plotting Bode and Pole-Zero Plots Demo Pole-Zero Plot Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  20. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Plotting Bode and Pole-Zero Plots Demo Pole-Zero Plot Demo Bode Plot Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  21. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Group Delay Group Delay Rate of change of Phase w.r.t Frequency 휏 푔 = 푑휙 푑휔 Where, 휏 푔 is the Group Delay 휙 is for phase delay 휔 is for frequency Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  22. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Aliasing What is Aliasing? Ambiguity from reconstruction ! Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  23. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Aliasing What is Aliasing? Ambiguity from reconstruction ! Shannon-Nyquist Sampling theorem. Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  24. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Aliasing What is Aliasing? Ambiguity from reconstruction ! Shannon-Nyquist Sampling theorem. Under-sampling Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  25. Digital Signal Processing and Filter Design using Scilab Basic signal processing tools Aliasing What is Aliasing? Ambiguity from reconstruction ! Shannon-Nyquist Sampling theorem. Under-sampling Scilab commands to remember - t = soundsec(n [,rate]) - generates n sampled seconds of time parameter v = linspace(x1,x2 [,n]) - linearly spaced vector mtlb hold(flag) Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  26. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based First order filter Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  27. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based First order filter Second order filter Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  28. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based First order filter Second order filter Observation : More attenuation ! Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  29. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based First order filter Second order filter Observation : More attenuation ! Scilab commands to remember - ss2tf, tf2ss, dscr - State-Space ¡-¿ Transfer Function, Discretizing Continuous Systems r = repfreq(Sys,frq) - Frequency response playsnd(data) filtered output = flts(input,filter) Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  30. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based Analog filter family prototypes Butterworth Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  31. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based Analog filter family prototypes Butterworth Chebyshev Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

  32. Digital Signal Processing and Filter Design using Scilab Filter Design Non-Recipe Based Analog filter family prototypes Butterworth Chebyshev Inverse Chebyshev Iman Mukherjee Digital Signal Processing and Filter Design using Scilab

Recommend


More recommend