impz
Builtin index · Signal processing
result = impz(filt, [n])
Input: filt, n · Output: result
What it is
filt: a Model (kind "filter"); n (optional number): without it an FIR's tap count, or for an IIR the samples until the response has run for about 14 time constants of its slowest pole (200000 at most).
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = impz(filt, [n]) | filt Modelfilt: a Model (kind "filter").n number, optionaln (optional number): without it an FIR's tap count, or for an IIR the samples until the response has run for about 14 time constants of its slowest pole (200000 at most). | result vector | Returns the impulse response as a length-n real vector. |
Examples
No documentation example calls this form yet. The Signal processing chapter is where one belongs.
How it works
impz(filt, [n]) / stepz(filt, [n]) -- the impulse and step response as length-n vectors. Without n: an FIR's own tap count, or an IIR's response until it has decayed (at most 4096).
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.