%% Response of State-Space Model to Initial Condition
% Plot the response of the following state-space model:
% \begin{array}{rcl}
% \left[ \begin{array}{l}
% {{\dot x}_1}\\
% {{\dot x}_2}
% \end{array} \right] &=& \left[ {\begin{array}{*{20}{c}}
% { - 0.5572}&{ - 0.7814}\\
% {0.7814}&0
% \end{array}} \right]\left[ \begin{array}{l}
% {x_1}\\
% {x_2}
% \end{array} \right]\\
% y &=& \left[ {\begin{array}{*{20}{c}}
% {1.9691}&{6.4493}
% \end{array}} \right]\left[ \begin{array}{l}
% {x_1}\\
% {x_2}
% \end{array} \right].
% \end{array}
% Take the following initial condition:
% x(0) = \left[ \begin{array}{l}
% 1\\
% 0
% \end{array} \right].

a = [-0.5572, -0.7814; 0.7814, 0];
c = [1.9691  6.4493];
x0 = [1 ; 0];

sys = ss(a,[],c,[]);
initial(sys,x0)

% Copyright 2015 The MathWorks, Inc.