Create a group
h5group(obj, names) h5group(filename, names)
a H5Object
a matrix of strings giving the names
a string giving the filename
Create a set of groups.
// We create a file a = h5open(TMPDIR + "/test_group.h5", "a"); // We create a set of 10 groups containing 10 subgroups // Firstly, we create the names gnames = "Group_" + string(1:10); sgnames = "SubGroup_" + string(1:10); names = gnames; for s=gnames names = [names s + "/" + sgnames] end // Secondly, we create the groups h5group(a, names); // We can check that all is ok h5ls(a) // ...and h5ls(a, "Group_3") // Free the resources associated to a h5close(a); | ![]() | ![]() |
Version | Description |
5.5.0 | HDF5 module introduced. |