0% found this document useful (0 votes)
31 views1 page

Circonv

The document defines two sequences x and h, finds their maximum length, and calculates their circular convolution v using the cconv function, plotting the results.

Uploaded by

VASANTHKUMAR M S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Circonv

The document defines two sequences x and h, finds their maximum length, and calculates their circular convolution v using the cconv function, plotting the results.

Uploaded by

VASANTHKUMAR M S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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