% 6.003 I/8 (Nada Amin)
% BSD 1.3
% (a)
x = [0 0 0 2 0 1 -1 3 0 0 0];
nx = [-3:7];
figure;
stem(nx,x); 
title('6.003 I/8 (Nada AMIN) x1'); 
xlabel('n'); ylabel('x[n]');
% (b) and (c)
ny1 = nx+2;
figure;
stem(ny1,x); 
title('6.003 I/8 (Nada AMIN) y1 is delayed by 2'); 
xlabel('n'); ylabel('y1[n]');

ny2 = nx-1;
figure;
stem(ny2,x); 
title('6.003 I/8 (Nada AMIN) y2 is advanced by 1'); 
xlabel('n'); ylabel('y2[n]');

ny3 = -nx;
figure;
stem(ny3,x); 
title('6.003 I/8 (Nada AMIN) y3 is flipped'); 
xlabel('n'); ylabel('y3[n]');

ny4 = -nx+1;
figure;
stem(ny4,x); 
title('6.003 I/8 (Nada AMIN) y4 is advanced by 1 then flipped (= flipped then delayed by 1)');
xlabel('n'); ylabel('y4[n]');

