control.matlab.evalfr¶
-
control.matlab.
evalfr
(sys, x)¶ Evaluate the transfer function of an LTI system for a single complex number x.
To evaluate at a frequency, enter x = omega*j, where omega is the frequency in radians
- Parameters
sys (StateSpace or TransferFunction) – Linear system
x (scalar) – Complex number
- Returns
fresp
- Return type
ndarray
Notes
This function is a wrapper for StateSpace.evalfr and TransferFunction.evalfr.
Examples
>>> sys = ss("1. -2; 3. -4", "5.; 7", "6. 8", "9.") >>> evalfr(sys, 1j) array([[ 44.8-21.4j]]) >>> # This is the transfer function matrix evaluated at s = i.
Todo
Add example with MIMO system