Technical discussion about Matlab and issues related to Digital Signal Processing.
Hi all. I have a question about a issue here. I want to convert a non-linear IIR filter to a linear FIR filter as well as= applying a window to it. It seems like I'm doing it wrong as frequenserespons I get of my new filter= never goes to zero (or close to zero) in the stopband, as well as the band= pass does not look good either. the code: b_window =3D hanning(100); [b,a] =3D butter(10,0.5,'low'); impulse=3D[1 zeros(1,99)]; b_of_iir =3D filter(b,a,impulse); bb =3D rot90(rot90(b_of_iir).*b_window); freqz(bb); As far as I know the "FIR coeffesients" from the IIR filter is obtainable w= hen putting an impulse respons on the IIR filter and afterwards weightening= the coeffesients with any window function. But when comparing with any windowing with the function fir1, it looks real= ly ugly. So I have to know, is my procedure correct at all? If not, could anyone post a pseudo code of how it should be done? Best regards Hakon =20 =20