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

22 次查看(过去 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