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

New to MATLAB?

correlation of speech signal

Asked by Primi

Primi (view profile)

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?



Primi (view profile)


No products are associated with this question.

1 Answer

Answer by Wayne King

Wayne King (view profile)

on 25 Apr 2013
Edited by Wayne King

Wayne King (view profile)

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



Wayne King

Wayne King (view profile)

Contact us