h5group

Syntax

h5group(obj, names)h5group(filename, names)

Arguments

obj

a H5Object

names

a matrix of strings giving the names

filename

a string giving the filename

Description

Create a set of groups.

Examples

// We create a filea=h5open(TMPDIR+"/test_group.h5","a");// We create a set of 10 groups containing 10 subgroups// Firstly, we create the namesgnames="Group_"+string(1:10);sgnames="SubGroup_"+string(1:10);names=gnames;fors=gnamesnames=[namess+"/"+sgnames]end// Secondly, we create the groupsh5group(a,names);// We can check that all is okh5ls(a)// ...andh5ls(a,"Group_3")// Free the resources associated to ah5close(a);