Filter löschen
Filter löschen

Area integration with the point where the mouse selected

2 Ansichten (letzte 30 Tage)
Shu-An Hsieh
Shu-An Hsieh am 19 Okt. 2022
Beantwortet: Kevin Holly am 28 Okt. 2022
I would like to integrate the area under the the curve and hope to chose the area manually. I have attached a sample figure. Thank you!
  2 Kommentare
Image Analyst
Image Analyst am 19 Okt. 2022
Can you attach a PNG screenshot? It's easier for us (no need to read it in with MATLAB, can see it here).
Shu-An Hsieh
Shu-An Hsieh am 19 Okt. 2022
Let me know if this is not working. Thank you!

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Benjamin Kraus
Benjamin Kraus am 21 Okt. 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.

Kevin Holly
Kevin Holly am 28 Okt. 2022
You could also use a slider and some buttons in an app to select the area of interest. See App attached.

Kategorien

Mehr zu Develop Apps Using App Designer 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!

Translated by