How to plot a y=e^x function

50 visualizzazioni (ultimi 30 giorni)
Monica DelaCruz
Monica DelaCruz il 24 Feb 2018
Modificato: Dyuman Joshi il 27 Gen 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?

Risposta accettata

Stephen23
Stephen23 il 24 Feb 2018
Modificato: Stephen23 il 24 Feb 2018
  1 Commento
Dyuman Joshi
Dyuman Joshi il 20 Gen 2024
Modificato: Dyuman Joshi il 27 Gen 2024
This can be obtained using fplot as well -
%Plot the exp function from x = -2 to x = 3
fplot(@exp, [-2 3])

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by