How can i perform indefinite integral in script?

조회 수: 3 (최근 30일)
동훈 이
동훈 이 2021년 9월 23일
댓글: Sulaymon Eshkabilov 2021년 9월 23일
I have problem running 17th row of this script, it says i need more input arguments....
Thrust,time_Rocket_Mass, are all constants.
I've tried Ft=int(ft) Ft=int(ft,t), But same problem occured
How can i integrate ft indefinitely???
  댓글 수: 1
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 9월 23일
There are a few crucial errs in your written code with integral. Here is a plain example how to embed integral in your code:
Th = 100;
RM = 300;
g = 9.81;
t0=0; tmax = 10;
ft = @(t)(Th./(t*RM)-g);
Ft = integral(ft, t0, tmax)

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

답변 (1개)

Steven Lord
Steven Lord 2021년 9월 23일
The integral function requires its first input to be a function handle. If you're trying to integrate a numeric set of data, see trapz or cumtrapz. If you're trying to integrate a symbolic expression use int instead.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by