MATLAB Answers

How to find the area between the curves

33 views (last 30 days)
Tariq Anwar Aquib
Tariq Anwar Aquib on 12 Jan 2020
Answered: Shubh Sahu on 30 Jan 2020
Hi all,
Being new to matlab I am not able to find the answer.
I have a curve, and I need to find the area enclosed by it.
Please see the attached picture.
Any help would be appreciated. :)
  2 Comments
Tariq Anwar Aquib
Tariq Anwar Aquib on 12 Jan 2020
I extracted the data from a different software and simply plotted it on matlab.

Sign in to comment.

Answers (1)

Shubh Sahu
Shubh Sahu on 30 Jan 2020
Hey!
If you have x and y vectors of the same length, then you can use polyarea or trapz fucntion.
for more information please refer to these links:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by