renamehdf5dataset

Moves the dataset from the source path to the destination path. All intermediate groups in the destination should exist.

Syntax

renamehdf5dataset(filename, srcDatasetPath, destDatasetPath)

Inputs

filename
Path to the HDF5 file.
Type: string
srcDatasetPath
Fully qualified path of the source dataset in the file.
Type: string
destDatasetPath
Fully qualified path of the destination dataset in the file.
Type: string

Example 1

Rename a dataset.
input=[1,2;3,4];
      createhdf5dataset('test.h5','/QUAD4',input)
      renamehdf5dataset('test.h5','/QUAD4','/QUAD4_Renamed')
      output=readhdf5('test.h5','/QUAD4_Renamed')
      
        output = 
        {
          [1,1] [Matrix] 2 x 2
          1  2
          3  4
        }