How can i perform indefinite integral in script?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Sulaymon Eshkabilov
am 23 Sep. 2021
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)
Antworten (1)
Steven Lord
am 23 Sep. 2021
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!