<< iirlp2mb | FOSSEE_Signal_Processing_Toolbox | impzlength >>

FOSSEE_Signal_Processing_Toolbox >> FOSSEE_Signal_Processing_Toolbox > impz

# impz

Generate impulse-response characteristics of the filter.

### Syntax

    [x, t] = impz (b)
    [x, t] = impz (b, a)
    [x, t] = impz (b, a, n)
    [x, t] = impz (b, a, n, fs)
    impz (…)

### Description

The filter coefficients correspond to the the z-plane rational function with numerator b and denominator a. If a is not specified, it defaults to 1. If n is not specified, or specified as [], it will be chosen such that the signal has a chance to die down to -120dB, or to not explode beyond 120dB, or to show five periods if there is no significant damping. If no return arguments are requested, plot the results.

### Examples

    // Define filter coefficients
    b = [0.2]               // Numerator (feedforward)
    a = [1, -0.8]           // Denominator (feedback)
    // Compute impulse response
    [x, t] = impz(b, a, 50)  // 50 samples of impulse response

### See also

- fftfilt — Performs FFT-based FIR filtering using overlap-add method
- filter

Report an issue
<< iirlp2mb | FOSSEE_Signal_Processing_Toolbox | impzlength >>