Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab .fig export to .xls

Status
Not open for further replies.

tim62

New member
Joined
May 26, 2005
Messages
1
Location
GB
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
 

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');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top