How to plot a y=e^x function

48 ビュー (過去 30 日間)
Monica DelaCruz
Monica DelaCruz 2018 年 2 月 24 日
編集済み: Dyuman Joshi 2024 年 1 月 27 日
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 Center および File Exchange2-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