This experiment gave me an opportunity for relearning concepts of structures in C as I looked for methods to represent complex numbers in a C program other than using arrays. The resulting code was generalized and could be used for any arbitrary value of N.
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.
ReplyDeleteIt is used over DTFT because the inverse of DFT can be calculated, but not of DTFT.
DFT is used to obtain the frequency response of any time domain signal but FFT is used practically for fast computation.
ReplyDeleteDFT is practically used because its the sampled version(in frequency-domain) of DTFT , and computers can only handle finite values. It is Good that you are writing generalized code!
ReplyDeleteDFT always give periodic results and increasing the length by zero padding of the signal gives a better approximation of signal and resolution of spectrum increases
ReplyDelete
ReplyDeleteIt's a useful program for testing and understanding the DFT process