Plotting e^-t graph

조회 수: 150 (최근 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 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