Learn R Programming

gsignal (version 0.3-1)

freqs_plot: Plot frequency response

Description

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

Usage

freqs_plot(w, h, ...)

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

Value

No return value

Examples

Run this code
# NOT RUN {
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