Remove["Global`*"];
a = {{-0.5572, -0.7814}, {0.7814, 0}};
c = {{1.9691, 6.4493}};
sys=StateSpaceModel[{a,{{1},{0}},c,{{0}}}]
|
|
x0 = {1,0}; (*initial state vector*)
y = OutputResponse[{sys,x0},0,{t,0,20}];
Plot[y,{t,0,20},
PlotRange->All,
GridLines->Automatic,
GridLinesStyle->Dashed,
Frame->True,
ImageSize->300,
AspectRatio->1,
FrameLabel->{{"y(t)",None},
{"t","system response"}},
RotateLabel->False,PlotStyle->Red]
| |