Untitled

Anonymous
MATLAB
11/29/2026 3:36 AM
462 B
6
Indexable
Never
n = 0:20;
A = 1;

% Growing exponential signal
a1 = 1.2;
x1 = A*(a1.^n);

% Decaying exponential signal
a2 = 0.8;
x2 = A*(a2.^n);

% Plot growing signal
subplot(2,1,1);
stem(n,x1,'filled');

xlabel('Sample Index (n)');
ylabel('Amplitude');
title('Discrete Growing Exponential Signal');
grid on;

% Plot decaying signal
subplot(2,1,2);
stem(n,x2,'filled');

xlabel('Sample Index (n)');
ylabel('Amplitude');
title('Discrete Decaying Exponential Signal');
grid on;
Editor is loading...
Leave a Comment