Netcdf Toolkit - netcdf.inq
[ndims,nvars,ngatts,unlimdimid] =netcdf.inq(ncid)Return informat about a netcdf file.
Return the number of dimension (ndims), the number of variables (nvars), the number of global attributes (ngatts) and the id of the unlimited dimension (unlimdimid).
If no unlimited dimension is declared -1 is returned.
For NetCDF4 files, one should use the function netcdf.inqUnlimDims as multiple unlimited dimension exists.