control.frd
- control.frd(d, w)[source]
Construct a frequency response data model.
frd models store the (measured) frequency response of a system.
This function can be called in different ways:
frd(response, freqs)
Create an frd model with the given response data, in the form of complex response vector, at matching frequency freqs [in rad/s]
frd(sys, freqs)
Convert an LTI system into an frd model with data at frequencies freqs.
- Parameters
response (array_like, or list) – complex vector with the system response
freq (array_lik or lis) – vector with frequencies
sys (LTI (StateSpace or TransferFunction)) – A linear system
- Returns
sys – New frequency response system
- Return type
FRD
Examples
>>> # Create from measurements >>> response = [1.0, 1.0, 0.5] >>> freqs = [1, 10, 100] >>> F = ct.frd(response, freqs)
>>> G = ct.tf([1], [1, 1]) >>> freqs = [1, 10, 100] >>> F = ct.frd(G, freqs)