I would like to plot an impulse and step response of some arbitrary system sys1.
Normally I would use just a command impulse(sys1,t) or step(sys1,t) however the signals in my case are delayed.
1) The impulse is represented as: diract(t-5)
2) step is represeneted as: 1(t)-2*1(t)(t-tsw)
I know some people use an exponential function for it, but I am unsure why and how,
I would greatly appreciate any help