Create group in NetCDF file
childGrpID = netcdf.defGrp(parentGroupId,childGroupName)
childGrpID = netcdf.defGrp(parentGroupId,childGroupName)
creates
a child group with the name specified by childGroupName
,
that is the child of the parent group specified by parentGroupId
|
Identifier of NetCDF file, returned by |
|
Character vector or string scalar specifying the name that you want to assign to the group. |
|
Identifier of a NetCDF group. |
This example creates a NetCDF dataset and then defines a group.
ncid = netcdf.create('myfile.nc','netcdf4'); childGroupId = netcdf.defGrp(ncid,'mygroup'); netcdf.close(ncid);
This function corresponds to the nc_def_grp
function
in the NetCDF library C API.
For copyright information, read the files netcdfcopyright.txt
and mexnccopyright.txt
.