Example:
>> fid = H5F.create('myfile.h5');
>> plist = 'H5P_DEFAULT';
>> gid = H5G.create(fid,'my_group',plist,plist,plist);
>> gid2 = H5G.create(fid,'my_group2',plist,plist,plist);
>> gid1 = H5G.create(gid,'my_group_nested',plist,plist,plist);
>> H5G.close(gid1);
>> H5G.close(gid2);
>> H5G.close(gid);
>> H5F.close(fid);
>> h5disp('myfile.h5')
HDF5 myfile.h5
Group '/'
Group '/my_group'
Group '/my_group/my_group_nested'
Group '/my_group2'
Best Answer