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

28 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

KSSV
KSSV am 25 Dez. 2021
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

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 25 Dez. 2021
  1 Kommentar
Krishnendu Paul
Krishnendu Paul am 25 Dez. 2021
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Exploration finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by