Learn R Programming

gsignal (version 0.3-5)

freqs_plot: Plot frequency response

Description

Plot the s-plane frequency response of an IIR filter.

Usage

freqs_plot(w, h, ...)

Value

No return value

Arguments

w

angular frequencies, specified as a positive real vector expressed in rad/second.

h

Frequency response, specified as a complex vector.

...

additional arguments passed to the plot() function

Author

Julius O. Smith III, jos@ccrma.stanford.edu.
Conversion to R by Geert van Boxtel gjmvanboxtel@gmail.com

Examples

Run this code
b <- c(1, 2); a <- c(1, 1)
w <- seq(0.01, 4, length.out = 128)
h <- freqs (b, a, w, plot = FALSE)
freqs_plot(w, h)
freqs_plot(w, h, log = "x")

Run the code above in your browser using DataLab