<< ssselect | Control System functions | tf >> |
[y, t, x] = step(sys) |
[y, t, x] = step(sys, t) |
[y, t, x] = step(sys, tFinal) |
[y, t, x] = step(sys, [t0, tFinal]) |
a lti model.
Time vector.
End time for step response: scalar.
Time range for step response: two-element vector.
Simulated response data: matrix or vector.
Time vector: vector.
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 system sys.
The time vector tOut is in the time units of sys, 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 from t0 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 |
Allan CORNET