function c=CC(a,b)
x=size(a);
y=size(b);
if x==y
B=[b b];
d=zeros(x,x);
for i=1:x
for j=0:x-1
d(j+1,i)=a(i)*B(i+j);
end
end
f=0:x-1;
c=(sum(d))/x;
plot(f,c);
else
disp('length is not equal')
end
a=[1:5];
b=[2:6];
x=length(a);
y=length(b);
if x==y
B=[b b];
d=zeros(x,x);
for i=1:x
for j=0:x-1
d(j+1,i)=a(i)*B(i+j);
end
end
f=0:x-1;
c=(sum(d))/x;
plot(f,c);
else
disp('length is not equal')
end