Thursday, November 8, 2007

correlation

Hi,

Try and play on these commands!

Dz

x=randn(1,1000);
>> y=filter(1,[1 -0.5],x);
>> plot(y)
>> plot(xcorr(x,x))
>> figure
>> plot(y,y)
>> figure
>> plot(xcorr(y,y))
>> y=filter(1,[1 -0.99],x);
>> plot(xcorr(x,x))
>> figure
>> plot(xcorr(y,y))
>> plot(xcorr(x,y))

No comments: