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

3 votes

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 Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by