h5disp

Display contents of HDF5 file

Syntax

h5disp(filename)
h5disp(filename,location)
h5disp(filename,location,mode)

Description

h5disp(filename) displays the structure (metadata) of the entire HDF5 file, filename.

h5disp(filename,location) displays the metadata for the specified location.

h5disp(filename,location,mode) displays the file metadata according to the value of mode.

Input Arguments

filename

Text string specifying the name of an HDF5 file.

location

Text string specifying the full path to a location in an HDF5 file. To display the metadata for the entire file, specify '/' as the value of location. If location is a group, h5disp displays all objects below the group.

mode

Either of the following text strings.

ValueDescription
minMinimal, display only group and data set names.
simpleDisplay data set metadata and attribute values, if the attribute is an integer, floating point, or a scalar string.

Default: simple

Examples

Display the entire contents of an HDF5 file.

h5disp('example.h5')

Display metadata for one data set in an HDF5 file.

 h5disp('example.h5','/g4/world');
Was this topic helpful?