A pure/ideal integrator has transfer function H(s)= s. If we try to get its step response in MATLAB we get the error "Cannot simulate the time response of models with more zeros than poles".
Similarly, if we try to get a step response in Simulink, we get a sharp (very thin) vertical line, which apparently goes to infinity.
How can we convert this ideal (pure) differentiator into a practical one?
I have placed my MATLAB code below:
clc
clear
close all
den=[1]%denominator of transfer function
num=[1 0]%numerator of transfer function
sys=tf(num,den)%transfer function expression of ideal(pure) differentiator system
step(sys)%step response
I am also attaching a snapshot of the Simulink model:
Update: based upon recieved comment & answer, i updated my question and also included snapshot of simulink model where low pass filter transfer function is used in place of derivative block, i also placed snapshot of simulink model where high pass filter transfer function is used in place of derivative block. But i am still confused,which one(Low pass filter or high pass filter) will be better replacement of pure(ideal)derivative block as asked in main question title