5.1.6.3. scipy.signal.StateSpace¶
-
class
scipy.signal.StateSpace(*system)[source]¶ Linear Time Invariant system class in state-space form.
Represents the system as the first order differential equation \(\dot{x} = A x + B u\).
Parameters: *system : arguments
The StateSpace class can be instantiated with 1 or 4 arguments. The following gives the number of input arguments and their interpretation:
- 1: lti system: (StateSpace, TransferFunction or ZerosPolesGain)
- 4: array_like: (A, B, C, D)
See also
TransferFunction,ZerosPolesGain,lti,ss2zpk,ss2tf,zpk2sosNotes
Changing the value of properties that are not part of the StateSpace system representation (such as zeros or poles) is very inefficient and may lead to numerical inaccuracies.
Methods
__init__(*system)Initialize the state space LTI system. bode([w, n])Calculate Bode magnitude and phase data of a continuous-time system. freqresp([w, n])Calculate the frequency response of a continuous-time system. impulse([X0, T, N])Return the impulse response of a continuous-time system. output(U, T[, X0])Return the response of a continuous-time system to input U. step([X0, T, N])Return the step response of a continuous-time system. to_ss()Return a copy of the current StateSpace system. to_tf(**kwargs)Convert system representation to TransferFunction. to_zpk(**kwargs)Convert system representation to ZerosPolesGain. Attributes
AState matrix of the StateSpace system. BInput matrix of the StateSpace system. COutput matrix of the StateSpace system. DFeedthrough matrix of the StateSpace system. denDenominator of the TransferFunction system. gainGain of the ZerosPolesGain system. numNumerator of the TransferFunction system. polesPoles of the ZerosPolesGain system. zerosZeros of the ZerosPolesGain system.