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
Great. yOU USED THE MATRIX METHOD. REALLY GREAT AND THANK YOU SO MUCH
ReplyDelete