필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I need help with an integral

조회 수: 1 (최근 30일)
Mo_B
Mo_B 2017년 1월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi guys,
I want to have the following integral in my equation: where 0 is the beginning and t=120 is the ending of the integral, ∫x*(1-e^t), where t is time in seconds.
ytot = 60 * ( 80*22 + 29.7*11 + integral(x*(1-exp(120))))
I hope you understand what I mean,
thanks for your help
  댓글 수: 3
Star Strider
Star Strider 2017년 1월 22일
Is ‘x’ a function of ‘t’ = ‘x(t)’?
Mo_B
Mo_B 2017년 1월 22일
with respect to x
no x is not a function of t

답변 (1개)

Star Strider
Star Strider 2017년 1월 22일
I’m not certain what you want to do.
Try this:
t = 0:120;
ytot = 60 * ( 80*22 + 29.7*11 + integral(@(x)x*(1-exp(t)), min(t), max(t), 'ArrayValued',1));
  댓글 수: 2
Mo_B
Mo_B 2017년 1월 22일
yeah I know... I don't know how to say it
it looks way better than what I got. Thanks
Star Strider
Star Strider 2017년 1월 22일
My pleasure.
If my Answer helped solve your problem, please Accept it!

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by