Program to open .fig files saved by Matlab

Cleiton picture Cleiton · Aug 10, 2012 · Viewed 58.5k times · Source

Is there any program able to open .fig files saved by Matlab?

Answer

jmetz picture jmetz · Aug 10, 2012

Update 29/04/2016

According to johnml1135's answer, fig files are essentially just mat files, and johnml1135 figured out where the various plot elements are stored, for converting a fig file to a Python plot.

Original

According to the answer here the fig file saved by Matlab is in a proprietary binary format. I don't know of any other software capable of loading this format.

Your best option is probably to have the figure saved as a pdf/png from within Matlab depending on the type of figure.

Possible workaround

I recently noticed that octave will load a fig file as a structure, so if you're stuck with trying to open fig files without being able to access Matlab you could try and write an octave function that will load the fig file and reconstitute the plot from the contents of the struct. This would probably require knowing prior information about the plot though.