initial
Function File: initial (sys, x0)
Function File: initial (sys1, sys2, …, sysN, x0)
Function File: initial (sys1, ’style1’, …, sysN, ’styleN’, x0)
Function File: initial (sys1, …, x0, t)
Function File: initial (sys1, …, x0, tfinal)
Function File: initial (sys1, …, x0, tfinal, dt)
Function File: [y, t, x] = initial (sys, x0)
Function File: [y, t, x] = initial (sys, x0, t)
Function File: [y, t, x] = initial (sys, x0, tfinal)
Function File: [y, t, x] = initial (sys, x0, tfinal, dt)
Initial condition response of a state-space model. If no output arguments are given, the response is printed on the screen.
Inputs
help plot for details.Outputs
length (t) rows and as many columns as states.Example
Consider a continuous- or a discrete-time system of the form
Continuous Time: $$\dot{x}(t) = A\,x(t) + B\,u(t),\quad x(0)=x_0,\quad y(t) = C\,x(t) + D\,u(t)$$
Discrete Time: $$x(k+1) = A\,x(k) + B\,u(k),\quad x(0)=x_0,\quad y(k) = C\,x(k) + D\,u(K)$$
The dynamic behavior of the system for and only driven by the initial system state is given by
sys = ss (A, B, C, D); initial (sys, x0); |
Remark
For a SISO input-output model and initial values for the output and its derivatives up to order the corresponding state space represetaiton is computed by:
[A,b,c,d] = ssdata (G); T = obsv (A, c); G_ss = ss2ss (ss (G), T); initial (G_ss, x0); |
Note that, in general, the states of are only equal to the output and its first time derivaties if , which is the case for the initial condition response.
Source Code: initial