how to get/extract x,y values from scatter function
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
darova
le 4 Mar 2020
Use handle
h = scatter(..)
get(h,'xdata')
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!