How to plot a y=e^x function

50 visualizaciones (últimos 30 días)
Monica DelaCruz
Monica DelaCruz el 24 de Feb. de 2018
Editada: Dyuman Joshi el 27 de En. de 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?

Respuesta aceptada

Stephen23
Stephen23 el 24 de Feb. de 2018
Editada: Stephen23 el 24 de Feb. de 2018
  1 comentario
Dyuman Joshi
Dyuman Joshi el 20 de En. de 2024
Editada: Dyuman Joshi el 27 de En. de 2024
This can be obtained using fplot as well -
%Plot the exp function from x = -2 to x = 3
fplot(@exp, [-2 3])

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by