Calculating area between individual points that create a curve
Show older comments
Hello all,
I want to calculate the area between points that create a curve.
I am using MATLAB to simulate particles being advected on a plane. I have the initial position of those particles and I have the final position. I want to calculate the area between the initial position and final position of the particles
The points are in the attached mat file, where px is the position x of the particles for 10 frames and py is the position y of the particles for 10 frames. I want to calculate the area (green in image) between px(:,:,1),py(:,:,1) (black line in image) and px(:,:,10),py(:,:,10) (points with red line). Below is a plot of the final position of the points. One of the approaches I tried was fitting the data with a polynomial curve but that would introduce a significant error in the calculations and I want to avoid that.

How can I calculate the area without fitting the data?
Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots 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!
