How to extract point from a group of plot graph?
3 views (last 30 days)
Show older comments
I have a folder with some .png files. Please check the attachment of the folder. How can i exrtact the coordinates of the line from the figure. I have tried with the following code:
h = findobj(gca,'Type','line');
x=get(h,'Xdata');
y=get(h,'Ydata');
But with this code im getting all the coodinates from the plot. How can i extract only the coordinates of the line that is plotted in the figure i.e., the coordinates of the blue dots in the figure.
0 Comments
Answers (1)
KSSV
on 8 Mar 2018
I = imread('fig500.png') ;
I1 = rgb2gray(I) ;
[y,x] = find(I1==29) ;
imshow(I)
hold on
plot(x,y,'.m')
See Also
Categories
Find more on Animation 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!