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
StateSpaceclass can be instantiated with 1 or 4 arguments. The following gives the number of input arguments and their interpretation:- 1:
ltisystem: (StateSpace,TransferFunctionorZerosPolesGain) - 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
StateSpacesystem representation (such aszerosorpoles) is very inefficient and may lead to numerical inaccuracies.Attributes
AState matrix of the StateSpacesystem.BInput matrix of the StateSpacesystem.COutput matrix of the StateSpacesystem.DFeedthrough matrix of the StateSpacesystem.denDenominator of the TransferFunctionsystem.gainGain of the ZerosPolesGainsystem.numNumerator of the TransferFunctionsystem.polesPoles of the ZerosPolesGainsystem.zerosZeros of the ZerosPolesGainsystem.Methods
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 StateSpacesystem.to_tf(**kwargs)Convert system representation to TransferFunction.to_zpk(**kwargs)Convert system representation to ZerosPolesGain.- 1: