how to get/extract x,y values from scatter function
Ältere Kommentare anzeigen
Hi,
I am currently plotting the X,Y coordinates using scatter function as below.
scatter(x(:,1),x(:,2),[],x(:,3),'filled')
I would like to get the x,y value which is being plotted with different colors, could you please do help me out here.
thank you.
Akzeptierte Antwort
Weitere Antworten (1)
darova
am 4 Mär. 2020
Use handle
h = scatter(..)
get(h,'xdata')
Kategorien
Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!