Increasing and decreasing Exponential Programs code are different however we will combine both in this program code. Different programs codes has already been given in the blog posts earlier.

Here is the code:

Program: Exponential

x=[1 1.5 2 2.5 3];

figure (1)

plot (exp(x));

gtext (‘increasing exponential curve’);

figure (2)

plot (exp (-x));

gtext (‘Decreasing Exponential curve’);

title(‘Increasing and decaying Exponential curve’);

ylabel (‘Y axis’);

xlabel (‘X axis’);

You can change the values according to the need. Change the labels if needed.