File Exchange

image thumbnail


version (2.93 KB) by Gregory Wallace
Exports data from MATLAB .fig file to HDF5 file.


Updated 25 Mar 2019

View Version History

View License

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.

Cite As

Gregory Wallace (2021). export_fig(figname) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Muhammad Zahid

Steve Richardson

For an example of how to read and use the hdf5 file that this produces, see:

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: Structure display

Inspired: Implementation of C1 FEM, TRIM: Triangulating Image

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!