functionanalysisTimeResponse
Compute time response of a discrete state space system
Extends from Modelica.Icons.Function (Icon for functions).
Information
Computes the time response of the system
dss = DiscreteStateSpace(
A=[0.99005, 0.00985;
0, 0.9802],
B=[0.01,0;
0,0.01],
C=[1,0; 0,1],
D=[0,0; 0,0],
Ts=0.01,
B2=[0,0; 0,0],
method=Modelica_LinearSystems2.Types.Method.StepExact),
sampled at Ts=0.01 with inititial state x0=[0;0] subject to the system input u = ones(300,2) (which results with Ts=0.01 in 3 sec).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,2] | u | ones(300, 2) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[samples,2] | y | System response (dimension: (input samples) x (number of outputs)) | |
| Real[samples] | t | Time vector used for simulation | |
| Real[samples,2] | x | State trajectories (dimension: (input samples) x (number of states) |