MATLAB: Low pass filter design

convolutionfilterlow pass

Hi, i designed a low pass filter but it is not working to 0.05 sec. After this point filter work normally. How to i can fix it thank you.
Fs=10000;
Ts=1/Fs;
signalLength=1000;
t=(0:signalLength-1)*Ts;
filtLP= designfilt('lowpassfir','FilterOrder',50,'CutoffFrequency',250,…
'SampleRate',Fs);
outputAfterFilterLPFourier = fft(outputAfterFilterLP,NFFT)/signalLength;

Best Answer

Hi Toygar Ozel,
have a look at the step response of your filter, e.g. using filter designer. You can determine easily that the group delay of your filter is around 0.05 s. You would have to use another filter design in order to reduce the group delay.
Kind regards,
Robert