Area integration with the point where the mouse selected

1 回表示 (過去 30 日間)
Shu-An Hsieh
Shu-An Hsieh 2022 年 10 月 19 日
回答済み: Kevin Holly 2022 年 10 月 28 日
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 件のコメント
Image Analyst
Image Analyst 2022 年 10 月 19 日
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 2022 年 10 月 19 日
Let me know if this is not working. Thank you!

サインインしてコメントする。

回答 (2 件)

Benjamin Kraus
Benjamin Kraus 2022 年 10 月 21 日
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 2022 年 10 月 28 日
You could also use a slider and some buttons in an app to select the area of interest. See App attached.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by