functionanalysisTimeResponse

Compute time response of a state space system

Extends from Modelica.Icons.Function (Icon for functions).

Information

Computes the time response of the system StateSpace sc = StateSpace(A=[-1,1;0,-2],B=[1, 0;0, 1],C=[1,0; 0,1],D=[0, 0; 0, 0]), sampled at Ts=0.01 with inititial state x0=[0;0] subject to the system input u = ones(samples,2), (samples is set to 30).

Inputs

TypeNameDefaultDescription
StateSpacescStateSpace(A = [-1, 1; 0, -2], B = [1, 0; 0, 1], C = [1, 0; 0, 1], D = [0, 0; 0, 0])
TimeResponseresponseTimeResponse.Step
Realdt0.01
Realspan5

Outputs

TypeNameDefaultDescription
Real[samples,2,2]ySystem response (dimension: (input samples) x (number of outputs))
Real[samples]tTime vector used for simulation
Real[samples,2,2]xState trajectories (dimension: (input samples) x (number of states)