I am trying to plot step response of an electronic circuit(differentiator) using MATLAB but I get an error:
Error using DynamicSystem/step (line 95)
Cannot simulate the time response of models with more
zeros than poles.
My code is below:
R=47*10^3%resistance value
C=1*10^-6% capacitor value
den=[-1]%denominator of transfer function
num=[R*C 0]%numerator of transfer function
sys=tf(num,den)%transfer function expression of model/system
step(sys)%step response
How can I plot my graph of step response without changing my original transfer function? Because if I change the original transfer function, it will become a new system. However, I want to analyze original system.