How to plot a y=e^x function

37 次查看(过去 30 天)
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?

采纳的回答

Stephen23
Stephen23 2018-2-24
编辑:Stephen23 2018-2-24
  1 个评论
Dyuman Joshi
Dyuman Joshi 2024-1-20
编辑:Dyuman Joshi 2024-1-27
This can be obtained using fplot as well -
%Plot the exp function from x = -2 to x = 3
fplot(@exp, [-2 3])

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by