[numdims, numvars, numglobalatts, unlimdimid] = netcdf.inq(ncid)
| Parameter | Description |
|---|---|
| ncid | Open netCDF file or group identifier. |
| filename | Path of the file when used by create or open. |
| mode | Numeric mode built from netCDF constants when required. |
| Parameter | Description |
|---|---|
| [numdims, numvars, numglobalatts, unlimdimid] | Return value described by the syntax shown above. |
netcdf.inq is a low-level wrapper around the corresponding netCDF C library operation.
Low-level functions use numeric identifiers returned by netcdf.create, netcdf.open, and related calls.
filename = [tempdir(), 'help_netcdf_inq.nc'];
ncid = netcdf.create(filename, netcdf.getConstant('NC_CLOBBER'));
netcdf.defDim(ncid, 'x', 3);
[ndims, nvars, natts, unlimdimid] = netcdf.inq(ncid);
netcdf.close(ncid);
| Version | Description |
|---|---|
| 2.0.0 | initial version |