How to calculate area of space in Matalb
Show older comments

Dear members, I want to calculate area of space created by 4 lines as figure. Could you help me to do that ? Thank you
4 Comments
Adam
on 10 Oct 2018
It rather depends how variable the 4 lines can be. In your case you just have the y origin and two vertical x limits so it is just an integration of your curve between those limits. If they were 4 arbitrary lines then it is a whole different matter.
doc cumtrapz
and similar functions should be about to do this easily enough for the specific case you show.
Tran Hoa
on 10 Oct 2018
Image Analyst
on 10 Oct 2018
Is line #1 the blue curve, or the black top of the axes box?
Tran Hoa
on 11 Oct 2018
Accepted Answer
More Answers (0)
Categories
Find more on Smoothing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!