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

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?

0 Comments

Primi

Products

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

stem(lags(101:end),xc(101:end))

0 Comments

Wayne King

Contact us