How accrues the delay in mfilt.firsrc ?

Hello,
can anybody explain me the delay from the filter mfilt.firsrc? In http://www.mathworks.de/help/toolbox/dsp/ref/mfilt.firsrc.html you can find an example in the upper part. After interpolation and decimation the filtered data have a transient oscillation of 13 Samples.
For correct representation you have to delay the signal in the line
stem(n(1:45)/(fs*l/m),y(13:57),'r','filled') with
y(13:57). Why is this 13?
I can not explain it to me.
Thank you for your help.
Stef

 Réponse acceptée

Wayne King
Wayne King le 20 Juil 2012
Hi Stef, you can find that by
hm = mfilt.firsrc(l,m);
mean(grpdelay(hm))/m
% now start the output signal at 12+1
y = y(13:end);

1 commentaire

Stef
Stef le 20 Juil 2012
Hello Wayne,
thank you for your answer.
Stef

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Signal Processing Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by