Sunday, May 1, 2011
1
matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code
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]
tags:autocorrelation matlab code,matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code autocorrelation using matlab
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
This post was written by: noufel n backer
Subscribe to:
Post Comments (Atom)
1 Responses to “matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code”
May 6, 2011 at 9:22 PM
good for learners
Post a Comment