## Documentation Center |

Impulse response of digital filter

`[h,t] = impz(b,a)[h,t] = impz(sos)[h,t] = impz(d)[h,t] = impz(...,n)[h,t] = impz(...,n,fs)impz(...)`

`[h,t] = impz(b,a)` returns
the impulse response of the filter with numerator coefficients,

`[h,t] = impz(sos)`returns the impulse response
for the second-order sections matrix, `sos`. `sos` is
a *K*-by-6 matrix, where the number of sections, *K*,
must be greater than or equal to 2. If the number of sections is less
than 2, `impz` considers the input to be a numerator
vector. Each row of `sos` corresponds to the coefficients
of a second order (biquad) filter. The *i*th row
of the `sos` matrix corresponds to `[bi(1)
bi(2) bi(3) ai(1) ai(2) ai(3)]`.

`[h,t] = impz(d)` returns the impulse response
of a digital filter, `d`. Use `designfilt` to generate `d` based
on frequency-response specifications.

`[h,t] = impz(...,n)` computes

`[h,t] = impz(...,n,fs)` computes

`impz(...)` with no output arguments
plots the impulse response of the filter.

`impz` works for both real and complex input
systems.

`designfilt` | `digitalFilter` | `impulse` | `stem`

Was this topic helpful?