[varname, xtype, dimids, natts] = netcdf.inqVar(ncid, varid)
| Parameter | Description |
|---|---|
| ncid | Open netCDF file or group identifier. |
| varid | Variable identifier. |
| varname | Variable name. |
| xtype | netCDF datatype constant. |
| dimids | Dimension identifier or vector of identifiers. |
| data | Nelson array to write. |
| Parameter | Description |
|---|---|
| [varname, xtype, dimids, natts] | Return value described by the syntax shown above. |
netcdf.inqVar exposes low-level variable access.
Low-level start and count arguments use zero-based netCDF C indexing semantics.
filename = [tempdir(), 'help_netcdf_inqVar.nc'];
ncid = netcdf.create(filename, netcdf.getConstant('NC_CLOBBER'));
dimid = netcdf.defDim(ncid, 'x', 3);
varid = netcdf.defVar(ncid, 'temperature', netcdf.getConstant('NC_DOUBLE'), dimid);
[name, xtype, dimids, natts] = netcdf.inqVar(ncid, varid);
netcdf.close(ncid);
| Version | Description |
|---|---|
| 2.0.0 | initial version |