<< impulse | Control System functions | isct >> |
[y, t, x] = initial(sys, x0) |
[y, t, x] = initial(sys, x0, Tfinal) |
[y, t, x] = initial(sys, x0, t) |
[y, t, x] = initial(sys, x0, [t0, tFinal]) |
initial(...) |
a lti model.
Initial state values: vector.
Time samples: 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.
[y, tOut] = initial(sys, x0) calculates the unforced initial response (y) of the dynamic system sys from the specified initial state x0.
The time vector tOut is provided in the time units of sys, and the initial function automatically adapts time steps and simulation duration based on the system dynamics.
When you use [y, tOut] = initial(sys, x0, tFinal), the function simulates the response from t = 0 to the final time t = tFinal.
Similarly, [y, tOut] = initial(sys, x0, [t0, tFinal]) simulates the response from t0 to tFinal.
Additionally, [y, tOut] = initial(sys, x0, t) returns the initial response of sys at the specified times provided in the vector t.
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);
initial(sys, X0);
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET