% script Chapter2_2.m
% Plot a discrete-time signal x[n]=3exp(-0.3n)sin(2n/3)(n-3)^2 
n = 0:20;
%x[n]=0 for all other n.
x = 3*exp(-0.3*n).*sin(2/3*n).*(n-3).^2;
stem(n,x,'filled');
xlabel('n');
ylabel('x[n]');
title('D-T Signal: x[n]=3exp(-0.3n)sin(2n/3)(n-3)^2');
axis auto;