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.

H5O.set_comment

Set comment for object specified by object identifier

Syntax

H5O.set_comment(obj_id,comment)

Description

H5O.set_comment(obj_id,comment) sets a comment for the object specified by obj_id.

Examples

plist = 'H5P_DEFAULT';
fid = H5F.create('myfile.h5','H5F_ACC_TRUNC',plist,plist);
gid = H5G.create(fid,'/g1',plist);
H5O.set_comment(gid,'This is a group comment.');
H5G.close(gid);
H5F.close(fid);
Was this topic helpful?