How to plot a y=e^x function

48 vues (au cours des 30 derniers jours)
Monica DelaCruz
Monica DelaCruz le 24 Fév 2018
Modifié(e) : Dyuman Joshi le 27 Jan 2024
I have the task to plot a graph using the function y=e^x but I am having trouble with the constant e. Do I have to define e first? or is there another way to rewrite this equation?

Réponse acceptée

Stephen23
Stephen23 le 24 Fév 2018
Modifié(e) : Stephen23 le 24 Fév 2018
  1 commentaire
Dyuman Joshi
Dyuman Joshi le 20 Jan 2024
Modifié(e) : Dyuman Joshi le 27 Jan 2024
This can be obtained using fplot as well -
%Plot the exp function from x = -2 to x = 3
fplot(@exp, [-2 3])

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots 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