renamehdf5group
Moves a group from the source path to the destination path. All intermediate groups in the destination should exist.
Syntax
renamehdf5group(filename, srcGroupPath, destGroupPath)
Inputs
- filename
- Path to the HDF5 file.
- srcGroupPath
- Fully qualified path of the source group in the file.
- destGroupPath
- Fully qualified path of the destination group in the file.
Example 1
Rename a
group.
createhdf5group('test.h5','/group2');
input=[1,2;3,4];
createhdf5dataset('test.h5','/group2/QUAD4',input)
renamehdf5group('test.h5','/group2','/group2_Renamed')
output=readhdf5('test.h5','/group2_Renamed/QUAD4')
output =
{
[1,1] [Matrix] 2 x 2
1 2
3 4
}