Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5F.get_obj_count

Number of open objects in HDF5 file

Syntax

obj_count = H5F.get_obj_count(file_id,types)

Description

obj_count = H5F.get_obj_count(file_id,types) returns the number of open object identifiers for the file specified by file_id for the specified type. types can be specified by one of the following character vectors:

'H5F_OBJ_FILE'
'H5F_OBJ_DATASET'
'H5F_OBJ_GROUP'
'H5F_OBJ_DATATYPE'
'H5F_OBJ_ATTR'
'H5F_OBJ_ALL'
'H5F_OBJ_LOCAL'

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/g2');
obj_count = H5F.get_obj_count(fid,'H5F_OBJ_GROUP');
H5G.close(gid);
H5F.close(fid);

See Also

Was this topic helpful?