| Contents | Index |
childGrps = netcdf.inqGrps(ncid)
childGrps = netcdf.inqGrps(ncid) returns all the child group IDs in the parent group, specified by ncid.
ncid |
Identifier of NetCDF file, returned by netcdf.create or netcdf.open, or of a NetCDF group, returned by netcdf.defGrp. |
childGrps |
Array containing identifiers of child groups in the specified NetCDF file or group. |
This example opens the sample NetCDF file and then gets information about the groups it contains.
ncid = netcdf.open('example.nc','nowrite');
childGroups = netcdf.inqGrps(ncid);
netcdf.close(ncid);
This function corresponds to the nc_inq_grps function in the netCDF library C API.
For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |