DSP Practical
DSP Practical
1) Generate the basic functions like unit impulse, unit step, ramp, exp, sin, cos etc.
2) Generate the signal given bellow, plot the magnitude and phase response. Also
plot the frequency content of it.
4) Compute the N-point DFT of the following, vary the value of N and visualize the
effect. Try N = 8,16,24,64,128,256 etc
a. s(n) = 3 * pow(e,-0.1 * n)
b. s(n) = 2 * cos(2 * pi * (0.15) * n) + sin(2 * pi * (0.4) * n)
c. s(n) = 4 * sin(4 * pi * (0.4) * n) + sin(2 * pi * (0.2) * n)
5) Compute 4-point DFT using Twiddle matrix, except the input sequence x(n) from
the user and calculate the output sequence y(n). Compute N-point DFT without
using Twiddle matrix. Except N and input sequence x(n) from the user and
calculate the output sequence y(n).
8) Design a N-point FIR low-pass filter with cutoff frequency 0.2 * pi using
rectangular, hamming, Blackman, hanning, Kaiser windows. Where N may vary
from 16 to 256. Try N = 1024. Also try to vary the cutoff frequency and see the
effect.
Plot its magnitude and phase response.
9) Design a N-point high-pass filter using above windows. Where N may vary from
16 to 256. Try N = 1024. Also try to vary the cutoff frequency and see the effect.
Plot its magnitude and phase response.
10) Use 2.a, 4.b, 4.c as input to the above design filters and find the output of the
filter. Plot the input and output.
11) Design a Band-Pass and Band-Stop FIR filter using Chebyshev window to meet
the following specification.
12) Design ButtorWorth Lowpass, Highpass, Bandpass and BandStop digital IIR
filters. Except passband ripple, stopband ripple, passband frequency, stopband
frequency and sampling frequency from the user. Plot the magnitude and phase
response of the filters.