MATLAB Answers


correlation of speech signal

Asked by Primi
on 25 Apr 2013

i hav a speech signal which contains noise. sampling frequency 8000Hz

how can i perform the autocorrelation of this signal with the delay of 100 samples?



No products are associated with this question.

1 Answer

Answer by Wayne King
on 25 Apr 2013
Edited by Wayne King
on 25 Apr 2013
 Accepted answer

Do you have the Signal Processing Toolbox? If so, you can use xcorr()

I'll give you an example

load mtlb;
[xc,lags] = xcorr(mtlb,100,'coef');

xc above is 201 samples long with the autocorrelation out to lags of +/- 100 (plus 0)

You can just extract the positive lags with



Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!