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 (2023). export_fig(figname) (https://www.mathworks.com/matlabcentral/fileexchange/59937-export_fig-figname), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Structure display
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Updated to fix bug related to histogram plots. Also top level directory within HDF5 structure is now 'DATA' in line with General Atomics online HDF5 repository automatic error checking.
Fixes bug that caused script to crash when attribute data is a cell array.
Added attributes for SourceFile, UserName, and CreationDate.
Fixed bug related to recursive object searching that resulted in infinite loop behavior.
Added support for 3-D quiver plots.
Fixed bug related to x and y axis labels.
Fixed a bug that caused some labels to be lost.