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

 Respuesta aceptada

Wayne King
Wayne King el 20 de Jul. de 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 comentario

Stef
Stef el 20 de Jul. de 2012
Hello Wayne,
thank you for your answer.
Stef

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Jul. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by