Equation for a growing and decaying exponential

14 vues (au cours des 30 derniers jours)
Abhishek sadasivan
Abhishek sadasivan le 15 Avr 2015
Commenté : Star Strider le 15 Avr 2015
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 .

Réponse acceptée

Star Strider
Star Strider le 15 Avr 2015
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
  4 commentaires
Abhishek sadasivan
Abhishek sadasivan le 15 Avr 2015
Thanks you very much
Star Strider
Star Strider le 15 Avr 2015
My pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by