I want to plot the output response of a system with gain, first-order lag and time delay, where the transfer function is
tf = 2 Exp[-0.1 s]/(.1 + s)
To plot a time delay, we need to use an approximation, as Mathematica's TransferFunctionModel
is restricted to rational transfer functions. We can use a Padé approximation
pa = PadeApproximant[tf, {s, 0, 5}]
and then determine the output response and plot it using
model = TransferFunctionModel[pa, s]
output = OutputResponse[model, UnitStep[t], t];
Plot[output, {t, 0, 10}, PlotRange -> All]
My output response looks very weird:
Can somebody please explain to me what I'm doing wrong?
Read the FAQs
! 3) When you see good Q&A, vote them up byclicking the gray triangles
, because the credibility of the system is based on the reputation gained by users sharing their knowledge. ALSO, remember to accept the answer, if any, that solves your problem,by clicking the checkmark sign
` $\endgroup$