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};
y = OutputResponse[{sys,x0},
UnitStep[t],{t,0,20}];
Plot[y,{t,0,20},
PlotRange->{{0,20},{0,13}},
GridLines->Automatic,
GridLinesStyle->Dashed,
Frame->True,
ImageSize->300,
AspectRatio->1,
FrameLabel->{{"y(t)",None},
{"t",
"system response to initial\
conditions and step input"}},
RotateLabel->False,
PlotStyle->Red]
| |