h5disp

Display contents of HDF5 file

Syntax

h5disp(filename)
h5disp(filename,location)
h5disp(filename,location,mode)
h5disp(___,'TextEncoding',encoding)

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.

h5disp(___,'TextEncoding',encoding) specifies the text encoding to use for reading objects in the HDF5 file.

Input Arguments

filename

Character vector or string scalar specifying the name of an HDF5 file.

location

Character vector or string scalar 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

Specified as one of these values:

ValueDescription
'min'Minimal, display only group and data set names.
'simple'Display data set metadata and attribute values, if the attribute is an integer, floating point, or a scalar string.

Default: 'simple'

encoding

Character encoding, specified as 'system' or 'UTF-8'.

  • 'system' — Use the system default encoding for names of objects and attributes.

  • 'UTF-8' — Use UTF-8 encoding for names of objects and attributes.

Default: 'system'

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');

Introduced in R2011a