Could anyone help me to plot this integral function?

조회 수: 1 (최근 30일)
Flavia Fan
Flavia Fan 2019년 10월 23일
댓글: Flavia Fan 2019년 10월 23일
f(t) =(0.217+0.259*exp(-t/172.9)+0.338*exp(-t/18.51)+0.186*exp(-t/1.186));
CF = vpaintegral(f,0,100);,
  댓글 수: 1
darova
darova 2019년 10월 23일
Result of integral is value (one value). How do you want to see it on a graph? Point?

댓글을 달려면 로그인하십시오.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 23일
편집: KALYAN ACHARJYA 2019년 10월 23일
Is this, as @darova rightly mentioned, it give one value how do you plot, which requires vectors?
syms t
f_t=@(t)(0.217+0.259*exp(-t/172.9)+0.338*exp(-t/18.51)+0.186*exp(-t/1.186));
CF=integral(f_t,0,100)
Command Window:
CF =
47.8161
Or this one:
t=linspace(0,100,500);
f_t=(0.217+0.259*exp(-t/172.9)+0.338*exp(-t/18.51)+0.186*exp(-t/1.186));
CF=cumtrapz(t,f_t);
plot(t,CF);
Hope it helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by