You are on page 1of 1

x=[1,2,3,4];

h=[1,2,3];
a=max(length(x),length(h));
v=cconv(x,h,a);
subplot(3,1,1);
stem(x,'linewidth',3);
title('Sequence 1','fontsize',18);
xlabel('n','fontsize',18);
ylabel('X[n]','fontsize',18);
axis([0 5 0 5])
subplot(3,1,2);
stem(h,'linewidth',3);
title('Sequence 2','fontsize',18);
xlabel('n','FONTSIZE',18);
ylabel('H[n]','fontsize',18);
axis([0 5 0 5])
subplot(3,1,3);
stem(v,'linewidth',3);
title('Circular Convolution By Inbuilt Function','fontsize',18);
xlabel('n','fontsize',18)
ylabel('Z[n]','fontsize',18);
axis([0 5 0 35])

You might also like