Main Content
ncwrite
Write data to netCDF file
Syntax
Description
ncwrite(
writes the text or numeric data in filename
,varname
,vardata
)vardata
to an existing variable
varname
in the netCDF file filename
.
The ncwrite
function writes the data in
vardata
starting at the beginning of the variable and, if needed,
automatically extends the unlimited dimensions. For more information on unlimited
dimensions, see the Dimensions
argument of the nccreate
function.
Examples
Input Arguments
Tips
MATLAB® interprets data as column major, but the netCDF C API interprets data as row major. Multidimensional data in the netCDF C API shows dimensions in the reverse of the order shown by MATLAB and consequently appears transposed.