Signal Processing Toolkit User Guide > Reference (G to P) > IMPRESP Function (PV-WAVE Extreme Advantage)
  

IMPRESP Function (PV-WAVE Extreme Advantage)
Computes the impulse response of a digital filter.
Usage
result = IMPRESP(h, n)
Input Parameters
hA valid filter structure.
n—The total number of samples to generate.
Returned Value
result—A one-dimensional array containing the first n values of the impulse response.
Keywords
None.
Discussion
IMPRESP uses IIRFILT with the input sequence x(n), defined by:
to compute the impulse response of a digital filter.
Example
In this example, the impulse response of a filter structure:
is computed using IMPRESP, and the results along with the analytic solution are printed out. Results should be ak for k = 0, 1, 2, ... when H(z) = 1/(1+az-1).
a = -0.25
h = FILTSTR([1], [1, a])
ir = IMPRESP(h, 10)
PM, [[ir], [.25^FINDGEN(10)]], Title = 'Computed         Actual'
See Also
IIRFILT

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.