This script exports the data and metadata contained within a MATLAB .fig file and puts it into an HDF5 file. Supports multiple subplots, error bars, axes labels, contour plots, histograms, and more. This script was created to make compliance with new directives for publishing the data contained within figures in all papers funded by US government sources.
Gregory Wallace (2021). export_fig(figname) (https://www.mathworks.com/matlabcentral/fileexchange/59937-export_fig-figname), MATLAB Central File Exchange. Retrieved .
Inspired by: Structure display
Inspired: Implementation of C1 FEM, TRIM: Triangulating Image
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
For an example of how to read and use the hdf5 file that this produces, see: https://github.com/arichar6/matlabfig2matplotlib