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

Circov PDF

This MATLAB code takes user input for the coefficients of two signals x1[n] and x2[n], convolves them using cconv, and plots the input signals and output on a 3-subplot figure. It displays the output y of convolving the inputs.

Uploaded by

Varun Sahani
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)
65 views1 page

Circov PDF

This MATLAB code takes user input for the coefficients of two signals x1[n] and x2[n], convolves them using cconv, and plots the input signals and output on a 3-subplot figure. It displays the output y of convolving the inputs.

Uploaded by

Varun Sahani
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

3/29/16 9:49 PM

C:\Users\Known Stranger\Documents\MATLAB\circov.m

clc;
x=input('ENTER THE COEFFICIENT OF x1[n] ');
h=input('ENTER THE COEFFICIENT OF x2[n] ');
y=cconv(x,h);
subplot(311);
n=0:(length(x)-1);
stem(n,x);
grid on;
xlabel('TIME');
ylabel('AMPLITUDE');
title('x1[n]');
subplot(312);
n=0:(length(h)-1);
stem(n,h);
grid on;
xlabel('TIME');
ylabel('AMPLITUDE');
title('x2[n]');
subplot(313);
n=0:(length(y)-1);
stem(n,y);
grid on;
disp(y)
xlabel('TIME');
ylabel('AMPLITUDE');
title('OUTPUT');

1 of 1

You might also like