Learn R Programming

signal (version 0.5)

impz: Impulse-response characteristics

Description

Impulse-response characteristics of a discrete filter.

Usage

## S3 method for class 'default':
impz(filt, a = 1, n = NULL, Fs = 1, \ldots)

## S3 method for class 'Arma':
impz(filt, \ldots)

## S3 method for class 'Ma':
impz(filt, \ldots)

## S3 method for class 'impz':
plot(x, \ldots)

## S3 method for class 'impz':
print(x, \ldots)

Arguments

filt
for the default case, the moving-average coefficients of an ARMA model or filter. Generically, filt specifies an arbitrary model or filter operation.
a
the autoregressive (recursive) coefficients of an ARMA filter.
n
number of points at which to evaluate the frequency response.
Fs
sampling frequency in Hz. If not specified, the frequencies are in per unit.
...
for methods of impz, arguments are passed to the default method. For plot.impz, additional arguments are passed through to plot.
x
object to be plotted.

Value

  • For impz, a list of class impz with items:
  • ximpulse response signal.
  • ttime.

Details

When results of impz are printed, the impulse response will be plotted. As with lattice plots, automatic printing does not work inside loops and function calls, so explicit calls to print or plot are needed there.

References

http://en.wikipedia.org/wiki/Impulse_response Octave Forge http://octave.sf.net

See Also

filter, freqz, zplane

Examples

Run this code
bt = butter(5, .3)
impz(bt)
impz(ellip(5, .5, 30, .3))

Run the code above in your browser using DataLab