FUNCTION REFERENCE
impz
Impulse response of a digital filter.
Impulse response of a digital filter.
Syntax
[h, t] = impz(b, a)Syntax
[h, t] = impz(b, a, n)Syntax
[h, t] = impz(b, a, n, fs)Syntax
[h, t] = impz(sos, n)Syntax
[h, t] = impz(d)Returns n samples (at most 65536) as a column and the times t = (0:n-1)'/fs (fs default 1). Without n (or n = []): length(b) for FIR filters; for IIR filters until the slowest pole decays to 5e-5, 6 decades of growth for unstable filters, five periods for poles on the unit circle (as impzlength). A bare call plots it.
Example
h = impz([1 1], 1, 8) % [1; 1; 0; 0; 0; 0; 0; 0]Example
[h, t] = impz(1, [1 -0.5]); % 14 samplesDifferences from MATLAB: n must be a count, not a vector of sample indices.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.