I'm trying to graph a simple response function: 1/(1-0.5s^-1)

Now, I know that the function can also be written as: s/(s-0.5)

So I tried plotting the step and impulse responses in Matlab:

sys = tf([1 0],[1 -0.5])

And these are the graphs that I'm getting: Graph of step and impulse responses

I think the shape of the step response is right; however, shouldn't the impulse response decay?

It just doesn't seem right that both graphs have the same shape.

  • \$\begingroup\$ I think Mathematics would be a better community to ask this on. \$\endgroup\$ – Casper Vranken Jan 14 '17 at 20:23

Your system is unstable - the pole is in the right half s-plane.

Look at the vertical scales: \$10^{25}\$

If you want to get the step and impulse responses of an arbitrary, but stable, system try: \$sys=\small tf([1], [1\hspace{2mm} 1])\$


The system is unstable, the pole is in the rigth-half plane, then, the response increases exponentially.

Maybe you can try whit rlocus() function, to get another graphic representation.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.