open(‘test.fig’)
h=gcf;
line=findall(h,’type’,'line’);
xdata=get(line(2),xdata);
ydata=get(line(2),ydata);
open(‘test.fig’)
h=gcf;
line=findall(h,’type’,'line’);
xdata=get(line(2),xdata);
ydata=get(line(2),ydata);
Use “csvwrite” or “dlmwrite” to write file
Use “csvread” or “dlmread” to read file
Or simply use “save” and “load”
http://www.mathworks.com/help/techdoc/ref/f16-5702.html#f16-14491
saveas(gcf,’test.png’)
saveas(gcf,’test.fig’)
openfig(‘test.fig’)