How to extract x, y data for particular/selected points from a scatter plot?

조회 수: 13 (최근 30일)
In a figure created using scatter plot in matlab, how do select particular points and extract x and y values for the same set of selected points?
regards,
Krishnendu

채택된 답변

KSSV
KSSV 2021년 12월 25일
Read about getpts, ginput. These functions will help to pick points.
[x,y] = getpts() ; % double click to exit
[x,y] = ginput(4) ; % you can specify number of points

추가 답변 (1개)

Walter Roberson
Walter Roberson 2021년 12월 25일
  댓글 수: 1
Krishnendu Paul
Krishnendu Paul 2021년 12월 25일
this also works, but because my scatter plots are curving in a certain way, selecting different points is easier with getpts. thank you so much for the help. it will deifinitely be helpful in other tasks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by