Plotting e^-t graph

24 ビュー (過去 30 日間)
Pratik A
Pratik A 2020 年 11 月 21 日
コメント済み: Image Analyst 2020 年 11 月 21 日
I have the task to plot a graph using the function y=e^(-t) but I am having trouble with the variable t. Do I have to define e or t first? or is there another way to rewrite this equation?

採用された回答

VBBV
VBBV 2020 年 11 月 21 日
編集済み: VBBV 2020 年 11 月 21 日
t = 0:0.1:10;
y = exp(-t);
plot(t,y)
define t and use exp function to calculate and plot the equation
  2 件のコメント
John D'Errico
John D'Errico 2020 年 11 月 21 日
編集済み: John D'Errico 2020 年 11 月 21 日
It seems like this is a very fequent (RECENT) question, with people not knowing about exp. I'm not sure why, but I wonder if all of these students are taking the same class, and their teacher never mentioned exp..
Image Analyst
Image Analyst 2020 年 11 月 21 日
If they can't even do something as simple as 3 lines of code, then I guess they never took even the most basic introductory training.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by