MATLAB (H5ML)
MATLAB utility functions not part of the HDF5 C library
Description
Use the MATLAB® HDF5 utility functions, H5ML
, for convenience operations,
such as comparing two HDF5 values and viewing the list of HDF5 constants and supported library
functions. The MATLAB utility functions are not part of the HDF5 C library.
Functions
H5ML.compare_values
Numerically compare two HDF5 values
tf = H5ML.compare_values(value1,value2)
compares two values, where
either or both values may be specified by their text representation (for example,
"H5T_NATIVE_INT"
). H5ML.compare_values
returns
logical 1
(true
) if value1
and
value2
are equal, and logical 0
(false
) if they are not. The values are compared numerically.
H5ML.get_constant_names
Constants known by HDF5 library
names = H5ML.get_constant_names()
returns a list of known library
constants, definitions, and enumerations. When these names are supplied as actual parameters
to HDF5 functions, they are automatically be converted to the appropriate numeric
value.
H5ML.get_constant_value
Value corresponding to a string
value = H5ML.get_constant_value(constant)
returns the numerical value
corresponding to the specified HDF5 enumeration or identifier.
H5ML.get_function_names
Functions provided by HDF5 library
names = H5ML.get_function_names()
returns a list of supported library
functions.
H5ML.get_mem_datatype
Datatype for dataset ID
dtypeID = H5ML.get_mem_datatype(locID)
returns the identifier of an
HDF5 memory datatype for the dataset or attribute identified by locID
.
This HDF5 memory datatype is the default used by H5D.read
or
H5D.write
when you specify"H5ML_DEFAULT"
as a value
of the memory datatype parameter. The identifier returned
byH5ML.get_mem_datatype
should eventually be closed by calling
H5T.close
to release resources.
Examples
Version History
Introduced before R2006a
See Also
Library (H5)
| Dataset (H5D)
| Dimension Scale
(H5DS)
| File (H5F)
| Object (H5O)
| Datatype (H5T)