how to get/extract x,y values from scatter function
Show older comments
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.
Accepted Answer
More Answers (1)
darova
on 4 Mar 2020
Use handle
h = scatter(..)
get(h,'xdata')
1 Comment
SatyaPrakash Gupta
on 5 Mar 2020
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!