netcdf.inqUnlimDims

Return list of unlimited dimensions in group

Syntax

unlimdimIDs = netcdf.inqUnlimDims(ncid)

Description

unlimdimIDs = netcdf.inqUnlimDims(ncid) returns the IDs of all unlimited dimensions in the group specified by ncid.

Input Arguments

ncid

Identifier of a NetCDF file, returned by netcdf.create or netcdf.open, or group, returned by netcdf.defGrp.

Output Arguments

unlimDimIDs

An array containing the identifiers of each unlimited dimension. unlimDimIDs is empty if there are no unlimited dimensions.

Examples

This example opens the NetCDF sample dataset and gets the IDs of all the unlimited dimensions.

ncid = netcdf.open('example.nc','NOWRITE');
dimids = netcdf.inqUnlimDims(ncid)

dimids =

     []

netcdf.close(ncid);

References

This function corresponds to the nc_inq_unlim_dims function in the NetCDF library C API.

For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.