You are on page 1of 1

clear all x=[1 2 3] h=[4 5 6] y=conv(x,h); display(y) subplot(3,1,1) stem(x) title('Linear Convolution') legend('First Sequence') xlabel('Time') ylabel('Amplitude') subplot(3,1,2)

stem(h) legend('Second Sequence') xlabel('Time') ylabel('Amplitude') subplot(3,1,3) stem(y) legend('Convoluted Sequence') xlabel('time') ylabel('Amplitude')

You might also like