How to calculate the area of specific path under the curve?
Mostra commenti meno recenti

this is the area i want to calculate
the code i used
>> i=[0:0.5:3.5];
>> l=18*sqrt(i);
>> plot (i,l)
>> grid on
>>
Risposte (2)
KSSV
il 22 Gen 2022
0 voti
Read about trapz.
2 Commenti
Salah Alfiky
il 22 Gen 2022
Louis Alexander
il 22 Gen 2022
like this:
i=[0:0.5:3.5];
l=18*sqrt(i);
plot (i,l)
grid on
Q = cumtrapz(l,i)
Q = trapz(l,i)
Louis Alexander
il 22 Gen 2022
if your curve can be expressed as a function, you can choose
integral、integral2 or integral3
Categorie
Scopri di più su Numerical Integration and Differentiation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!