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};
{x1,x2} = StateResponse[
{sys,x0},0,{t,0,20}];
Plot[{x1,x2},{t,0,20},
PlotRange->All,
GridLines->Automatic,
GridLinesStyle->Dashed,
Frame->True,
ImageSize->350,
AspectRatio->1,
FrameLabel->{{"y(t)",None},
{"t",
"first and second state\
change with time"
}},
RotateLabel->False,
PlotStyle->{Red,Blue},
BaseStyle -> 12]
| |