Creates a cell array of all global attributes of NetCDF file nc or all attributes of variable nv. The content of a NetCDF attribute can be accessed by using the "(:)" operator.
Example:
nc = netcdf('test.nc','r'); na = ncatt(nc){1}; % gets the first global attribute in test.nc myvar = na(:); % copies the content of this NetCDF attribute is myvar.
See also: ncvar,ncdim,ncname,ncdatatype.
Package: octcdf