freqs_plot: Plot frequency response

View source: R/freqs_plot.R

freqs_plotR Documentation

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

Author(s)

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

Examples

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")


gjmvanboxtel/gsignal documentation built on Nov. 22, 2023, 8:19 p.m.