I hope I can explain my problem well enough,
Let's say I have a closed loop control system, and I know the given physical plant Gp
(the compensator and the feedback transfer func is 1). The question is to check whether the system can track a frequency of 2 rad/sec
perfectly. Looking at 'Gp'(s=jw)|w=2
and substituting in T(s)=1/(s^2+5)
we see that it's 1
and tracks it perfectly, but T(s)
itself is not stable. Supposedly I can check it in Matlab and see that the output graph(of T(s)
) does not track the input of w=2
(output and input graphs are on the same figure).
How can I write a code to recreate that situation?(someone advised to use lsim, but I couldn't really understand it fully) Thanks!