The aim of the experiment was to design digital filter using windowing method and study the spectrum. The input parameters were passband attenuation(Ap), stopband attenuation(As), passband frequency(Fp), stopband frequency(Fs) and sampling frequency(F). The magnitude and phase spectrum for LPF and BPF using Hanning window were plotted.
The observed and calculated values of Ap and As were compared. Thus, the values were verified. The phase spectrum was observed to be linear.
Link for the code:
https://drive.google.com/file/d/0B9FCQ_loE3PaNnNxUmdreFBrVzg/view?usp=sharing
Can your program provide other window function options like hamming, blackman etc ??
ReplyDeleteYes. The window function depends upon the value of As and Ap. SO accordingly we can change the window function.
ReplyDeleteblackman window is best due to high attenuation.
ReplyDeleteA window function is required to truncate infinite samples of hd(n).
ReplyDelete