% Nada Amin
% 6.003 Problem Set 2, Problem 8, BDS 2.1

% a on paper

% b
x = [1 1 1 1 1 1];
ny = [0:10];
y = conv(x,x);
stem(ny,y);

% c
h = [0:5];
y = conv(x,h);
stem(ny,y);

% d
% y2 is the same as y, only the indices are different

% e
y2 = conv(x,h);
ny2 = ny-5;
stem(ny2,y2);
