Decaying Exponential MATLAB Program code.

x=-t;

t=1:.01:20;

a=exp(x);

plot(t,a); grid on

Grid depends on you whether you want it off or on. So change as required.

Decaying Exponential MATLAB Program code.

x=-t;

t=1:.01:20;

a=exp(x);

plot(t,a); grid on

Grid depends on you whether you want it off or on. So change as required.