You are on page 1of 2

PROGRAM 1 :

clear all
clear figure
n= 0:6;
x=[2 1 3 1 4];
h=[1 0 2 ];
y=conv(x,h);
stem(n,y)

PROGRAM 2 :
clear all
clear figure
n= 0:3 ;
x=[2 3 1];
h=[1 4 ];
y=conv(x,h);
stem(n,y)

You might also like