필터 지우기
필터 지우기

Area integration with the point where the mouse selected

조회 수: 2 (최근 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 CenterFile Exchange에서 Develop 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