% Plot an exponential sequence (0.7)^n and level it.
% *************************************************
N=20;
n=0:1:N-1;
xn=0.7.^n;
subplot(2,1,1),stem(n,xn);
subplot(2,1,2),plot(n,xn);
xlabel('n');
ylabel('xn');
title('Exponential Sequence');
MATLAB Programs as per Exercises
No comments:
Post a Comment