MATLAB: How to extract x, y data values from matlab figure

extractmatlab figure

please find the attachment; in the figure, there are two data values. i need the x and y values of this data.

Best Answer

Open the figure:
h = findobj(gca,'Type','line')
x=get(h,'Xdata') ;
y=get(h,'Ydata') ;
(x,y) is your required data.
Related Question