Matlab .fig export to .xls
Matlab .fig export to .xls
(OP)
Hi,
I've got a .fig file that isn't mine but I want to get the data values off it into an excel spreadsheet... I know it's an easy question but I've never used Matlab before but can anyone tell me what I have to do to export the data into ascii format from there?
Thanks,
Tim
I've got a .fig file that isn't mine but I want to get the data values off it into an excel spreadsheet... I know it's an easy question but I've never used Matlab before but can anyone tell me what I have to do to export the data into ascii format from there?
Thanks,
Tim





RE: Matlab .fig export to .xls
Open the figure, then use these commands:
h = get (gca); % returns a handle to the figure
xdata = get(h.Children,'XData');
ydata = get(h.Children,'YData');
zdata = get(h.Children,'ZData');