How to calculate the area of specific path under the curve?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
![Area wanted to calculate](https://www.mathworks.com/matlabcentral/answers/uploaded_files/869935/Area%20wanted%20to%20calculate.png)
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
>>
0 Kommentare
Antworten (2)
KSSV
am 22 Jan. 2022
Read about trapz.
2 Kommentare
Louis Alexander
am 22 Jan. 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
am 22 Jan. 2022
if your curve can be expressed as a function, you can choose
integral、integral2 or integral3
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!