Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

The auto-correlation of a periodic signal preserves the periodicity | MATLAB Visualization


Code:

clc
clear all
close all
t=0:1:100;
x=sin(2*pi*0.05*t);
subplot(2,1,1);
plot(t,x);
grid on;
m=xcorr(x,x);
t1=t;
t2=-fliplr(t);
n1=min(t1)+min(t2);
n2=max(t1)+max(t2);
n=n1:1:n2;
subplot(2,1,2);
plot(n,m);
grid on;


No comments

Popular Posts

Followers