matlab save the coordinates of all the points of the figure in the image

Use findall and get, such as:
LH = findall (GCA, 'type', 'Line');% extraction curve from the current FIG (GCA) handle
XC = GET (LH, 'XDATA');% taken x-axis data Note that the data structures stored x and y are the cell
yc = get (lh, 'ydata ');% y-axis data is extracted
and then removed from the coordinates xc and yc of the two cell.

If you just want this picture, then save it as a fig file on the line

Published 179 original articles · won praise 124 · views 700 000 +

Guess you like

Origin blog.csdn.net/shixin_0125/article/details/105172622