inverse FIR filter

Version 1.0.0.0 (19.3 KB) by Matthes
design inverse filter (FIR) from mono or stereo impulse response
3.7K Downloads
Updated 24 Mar 2008

No License

[ih]=invFIR(type,h,Nfft,Noct,L,range,reg,window)
- optional GUI included-

inputs overview
---------------
type:
1. 'linphase': symmetric two-sided response compensating magnitude while maintaining original phase information
2. 'minphase': one-sided response compensating magnitude with minimal possible group delay
3. 'complex': asymmetric two-sided response compensating magnitude and phase

h:
mono or stereo impulse response (column vector)

Nfft:
FFT length for calculating inverse FIR

Noct:
optional fractional octave smoothing (e.g. Noct=3 => 1/3 octave smooth, Noct=0 => no smoothing)

L:
length of inverse filter (truncates Nfft-length filter to L)

range:
frequency range to be regulated (e.g. [32 16000] => 32 Hz to 16 kHz)
%
% reg:
amount of regularization (in dB) inside (reg(1)) and outside (reg(2)) the specified range (example: reg=[20 -6] => inverts frequency components within 'range' with a max. gain of 20 dB,
while dampening frequencies outside 'range' by 6 dB)

window:
window=1 applies a hanning window to the inverse filter

Cite As

Matthes (2024). inverse FIR filter (https://www.mathworks.com/matlabcentral/fileexchange/19294-inverse-fir-filter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0