Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | IIR to FIR with window convertion

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

IIR to FIR with window convertion - haak...@hotmail.com - May 26 7:25:09 2006



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



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )