You are on page 1of 1

% x=[1 1 2 1 2];

% h=[1 2 -1 1];
% y=conv(x,h);
% plot(y)
x=[1 0 -1 -1 1 2 3 5];
h=[2 1 -1 3 7];
y=conv(x,h);
t=(-5:6);
stem(t,y)

You might also like