Navigation

Operators and Keywords

Function List:

C++ API

Loadable Function: ncvar( nc )

Creates a cell array of all variables in a NetCDF file. The content of a NetCDF variable can be accessed by using the "(:)" operator.

Example:

nc = netcdf('test.nc','r'); 
nv = ncvar(nc){1}; % gets the first variable in test.nc 
myvar = nv(:);     % copies the content of this NetCDF variable is myvar. 

See also: ncatt,ncdim,ncname,ncdatatype.

Package: octcdf