www.gusucode.com > control 案例程序 matlab源码代码 > control/ResponseOfStateSpaceModelToInitialConditionExample.m
%% 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].$$ % %% % Copyright 2015 The MathWorks, Inc. a = [-0.5572, -0.7814; 0.7814, 0]; c = [1.9691 6.4493]; x0 = [1 ; 0]; sys = ss(a,[],c,[]); initial(sys,x0)