A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-control.readthedocs.io/en/stable/generated/control.matlab.evalfr.html below:

control.matlab.evalfr — Python Control Systems Library 0.10.2 documentation

Python Control Systems Library control.matlab.evalfr
control.matlab.evalfr(sys, x, squeeze=None)[source]

Evaluate transfer function of LTI system at complex frequency.

Returns the complex frequency response sys(x) where x is s for continuous-time systems and z for discrete-time systems, with m = sys.ninputs number of inputs and p = sys.noutputs number of outputs.

To evaluate at a frequency omega in radians per second, enter x = omega * 1j for continuous-time systems, or x = exp(1j * omega * dt) for discrete-time systems, or use freqresp(sys, omega).

Parameters:
sysStateSpace or TransferFunction

Linear system.

xcomplex scalar or 1D array_like

Complex frequency(s).

squeezebool, optional (default=True)

If squeeze = True, remove single-dimensional entries from the shape of the output even if the system is not SISO. If squeeze = False, keep all indices (output, input and, if omega is array_like, frequency) even if the system is SISO. The default value can be set using config.defaults['control.squeeze_frequency_response'].

Returns:
frespcomplex ndarray

The frequency response of the system. If the system is SISO and squeeze is not True, the shape of the array matches the shape of omega. If the system is not SISO or squeeze is False, the first two dimensions of the array are indices for the output and input and the remaining dimensions match omega. If squeeze is True then single-dimensional axes are removed.

See also

LTI.__call__, frequency_response, bode_plot

Notes

This function is a wrapper for StateSpace.__call__ and TransferFunction.__call__.

Examples

>>> G = ct.ss([[-1, -2], [3, -4]], [[5], [7]], [[6, 8]], [[9]])
>>> fresp = ct.evalfr(G, 1j)  # evaluate at s = 1j

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4