MATLAB: Equation for a growing and decaying exponential

digital image processingdigital signal processingimage processingmathematicssignal processing

I like know whether any single equation is there for a growing and decaying exponential .i.e from minus infinity to zero it has to grow up to one (at zero one) and from zero to + infinity it has to decay.(All most look like a triangle wave).whether any equation will do this or not . Thanks in advance .

Best Answer

You can easily create your own. Here is an anonymous function that works:
x = [-10:0.1:10];
k = 2.0;
f = @(x,k) exp(-abs(k*x));
figure(1)
plot(x, f(x,k))
grid
Related Question