Calculating an area under a curve
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
% Dear users,
% Is there any way to calculate an area under a curve as in the figure?
% It would really appreciate if you can help me.
% Thanks in advance!
![Area Calculation Matlab.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/208239/Area%20Calculation%20Matlab.jpeg)
7 Kommentare
Torsten
am 13 Mär. 2019
The formula is gives an approximation for
integral_{t=0.2}^{t=t(end)} u(t) dt.
It seems that you want the area start at u=0.2.
Then subtract the area of the rectangle between u=0 and u=0.2 for 0.2 <= t <= t(end), i.e.
area = trapz(tp,up) - (tp(end)-0.2)*0.2
Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!