Create the variable varname in the file filename.
The following properties can be used:
ncinfo
for the correspondence between Octave and NetCDF data
types). The default data type is a "double".
nccreate("test.nc","temp","Dimensions",{"lon",10,"lat",20},"Format","classic"); ncdisp("test.nc");
See also: ncwrite.
Package: netcdf