I have frequency responses of FIR filter of order 13 from obtained 50 frequency samples. How can I get FIR filter coefficients of order 13?
For example, in MATLAB a lot of possible ways I tried ;
I have a frequency samples :
w=[0 1] (1x50)
I have frequency responses of FIR filter of order 13:
b1=fir1(12,wc) % b1:FIR filter ideal coefficients of order 13 hd=freqz(b1,1,w) %hd :FIR filter frequency responses with respect to b1
- When I apply inverse fourier transform to FIR filter frequency responses (
ifft(hd,13)), I don't reach b1. I am supposed to reach b1 coefficients in theory. Am I right?
- I apply inverse fft shift for moving to true domain before apply Fourier Transform(
ifft( ifftshift(hdg),13)) but also I don't reach b1. So what else can I do?
There is incompatible things(may be between frequencies and transforms ) I don't understand.