This was a relatively easy assignment as the MATLAB function fir1() directly generates the required filter based on the given specifications. The only task was to decide the appropriate window function based on the given stop band attenuation, as taught in the lecture.
Using structures for performing operations on complex numbers made programming this experiment relatively simpler. I have used recursion in the FFT function which makes it functional for any radix-2 value of N, unlike the example codes provided, which had separate functions for different values of N. Because of this, the input signal of any length has to be first converted into a radix-2 form by appending the necessary amount of 0's and then calculating FFT. IFFT simply uses FFT for its calculation.
FIR filters are very useful because they can be used to obtaining linear phase response.
ReplyDeleteWindow method is widely used because different window functions can be used for different specifications of filter design.
ReplyDeleteYes, MATLAB does make it much simpler to use and analyse different Window functions with variety of inbuilt functions.
ReplyDeleteWhy not use 'C' as the other experiments?
ReplyDelete