Area integration with the point where the mouse selected
1 view (last 30 days)
Benjamin Kraus on 21 Oct 2022
You can use ginput to click and select points from a figure window.
Once you've got the points, "integrating the area under the curve" is just a matter of adding the values and dividing by the space between values.