필터 지우기
필터 지우기

how to get the exact value?

조회 수: 7 (최근 30일)
Jinquan Li
Jinquan Li 2021년 2월 23일
답변: KALYAN ACHARJYA 2021년 2월 23일
I'm trying to use numerical Matlab approach tp find the integral of f = 5e^-t , for -1<t<2. Here's the code i tried:
f5 = @(t) 5*exp(-t);
q = integral(f5,-1,2)
The answer is
q =
12.914732726112163
The answer I expect is -5e^(-2)+5e. How can i get the answer in this format?

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 23일
See the Format
format shortEng

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by