freqresp: Low level frequency response function

Description Usage Arguments Value See Also Examples

View source: R/freqresp.R

Description

This function obtains the low level frequency response of a system.

Usage

1
freqresp(sys, w = seq(0, 100, length = 10000), iu = 1)

Arguments

sys

An LTI system of tf, ss and zpk class

w

a vector of frequency points

iu

For calls to freqresp, iu is a number specifying an input for a MIMO state-space system. If the system has 3 inputs, then iu would be set to 1, set to 2 and then to 3 to obtain the step response from input 1, 2, and 3 to the outputs

Value

freqresp(sys, w) returns a vector of frequencies for sys in complex form

See Also

bode nyquist

Examples

1
2
H <- freqresp(ssdata(tf(c(1,1), c(1,2,1))), (seq(0, 100, length = 10000)))
H <- freqresp(tf(c(1,1), c(1,2,1)), seq(0, 100, length = 10000))

benubah/control documentation built on May 10, 2020, 1:38 a.m.