HDF5 Files
Hierarchical Data Format, Version 5 (HDF5) is a data model, library, and file format for storing and managing data. You can interact with HDF5 files in several ways:
The Import Tool app (in MATLAB® Online™) and the Import Data Live Editor task provide intuitive graphical interfaces for exploring and reading data from HDF5 files.
The MATLAB high-level HDF5 functions provide a simplified programmatic interface for reading data from HDF5 files and writing data from the MATLAB workspace to HDF5 files.
The MATLAB low-level HDF5 functions provide finer control over the reading and writing process of HDF5 files by providing access to more than 300 functions in the HDF5 C library.
To use the MATLAB low-level HDF5 functions, you must be familiar with HDF5 C API programming concepts, described at
https://www.hdfgroup.org/solutions/hdf5/
.
MATLAB uses HDF5 C library version 1.14.4.3. (since R2024b)
Live Editor Tasks
Import Data | Import data from a file in the Live Editor (Since R2023a) |
Apps
Import Tool | Import data from file |
Functions
Topics
- Import HDF5 Files
Read data from an HDF5 file using the high-level functions, the low-level functions, and the Import Data Live Editor task.
- Export to HDF5 Files
Write data and metadata from the MATLAB workspace to an HDF5 file.
- Work with Non-ASCII Characters in HDF5 Files
MATLAB supports non-ASCII data and metadata in HDF5 files.
- Read and Write Data Concurrently Using Single-Writer/Multiple-Reader (SWMR)
Write data to an HDF5 file in one process while you concurrently read from the file in one or more reader processes.
- Work with HDF5 Virtual Datasets (VDS)
Access data stored across multiple HDF5 files as a single, unified HDF5 dataset.
- Read and Write HDF5 Datasets Using Dynamically Loaded Filters
The HDF5 library and file format enables using filters on data chunks before they are written to or after they are read from disk.