How to plot a y=e^x function

53 Ansichten (letzte 30 Tage)
Monica DelaCruz
Monica DelaCruz am 24 Feb. 2018
Bearbeitet: Dyuman Joshi am 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?

Akzeptierte Antwort

Stephen23
Stephen23 am 24 Feb. 2018
Bearbeitet: Stephen23 am 24 Feb. 2018
  1 Kommentar
Dyuman Joshi
Dyuman Joshi am 20 Jan. 2024
Bearbeitet: Dyuman Joshi am 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])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by