x=[0 1 2 3 2 1]; h=[1 1 1 1 1 1]; y=conv(x,h); n=[0:length(y)-1]; stem(n,y,'fill'); xlabel('n'); ylabel('y[n]');