ICC world cup live score

click here for LIVE

Sunday, May 1, 2011

matlab program for autocorrelation

matlab program for autocorrelation 

program

clear all;
x=input('Enter the sequence');
N=length(x);
y=x;
z=x;
for i=1:N-1
    for i=N-1:-1:1
        x(i+1)=x(i);
    end
    x(1)=0;
    z=[z;x];
end
m=[z]*[y'];
m=m/N;
stem(m);
disp(m);
title('Auto correlation');
xlabel('Time index');
ylabel('Amplitude');

input
enter the sequence[1 2 3 4 5]

output
 

tags:autocorrelation matlab code,matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code autocorrelation using matlab

1 comment:

  1. Great. yOU USED THE MATRIX METHOD. REALLY GREAT AND THANK YOU SO MUCH

    ReplyDelete