Grabbing points from scatter plot
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmed Abdulla
am 18 Jun. 2020
Beantwortet: Ameer Hamza
am 19 Jun. 2020
I have 2 matrices and i plotted them on a scatter plot and i would like to highlight some points from the plot and discard all the other data points from the matrices i generated the scatter plot from. Is this possible.
e.g my plot is made out of 1000 data points and i would like to select 25 points from the plot and discard all the other data points from the matrices with the data.
Really Sorry if this is not possible or not clear
1 Kommentar
Akzeptierte Antwort
Ameer Hamza
am 19 Jun. 2020
This shows how you can randomly select points from the complete dataset
x = rand(1000, 1);
y = rand(1000, 1);
idx = randperm(1000, 25); % randomly select 25 points
scatter(x(idx), y(idx))
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!