[y, t, x] = step(sys)
[y, t, x] = step(sys, t)
[y, t, x] = step(sys, tFinal)
[y, t, x] = step(sys, [t0, tFinal])
| Parameter | Description |
|---|---|
| sys | a lti model. |
| t | Time vector. |
| tFinal | End time for step response: scalar. |
| [t0, tFinal] | Time range for step response: two-element vector. |
| Parameter | Description |
|---|---|
| y | Simulated response data: matrix or vector. |
| t | Time vector: vector. |
| x | State trajectories: matrix or vector. |
The function defaults to applying a step at t0 = 0 with initial conditions U = 0, dU = 1, and td = 0.
The step function, used as[y, tOut] = step(sys), calculates the step response (y) of the dynamic systemsys.
The time vector tOut is in the time units ofsys, and the function automatically determines the time steps and simulation duration based on the system dynamics.
If you use[y, tOut] = step(sys, tFinal), the step response is computed from t = 0 to the specified end time t = tFinal.
Similarly,[y, tOut] = step(sys, [t0, tFinal]) computes the step response fromt0 to tFinal.
A = [-10 -20 -30;1 0 0; 0 1 0];
B = [1; 0; 0];
C = [0 0 1];
D = 0;
T = [0:0.1:1];
U = zeros(size(T, 1), size(T, 2));
X0 = [0.1 0.1 0.1];
sys = ss(A, B, C, D);
step(sys);
| Version | Description |
|---|---|
| 1.0.0 | initial version |