ncwrite
NCWRITE Write data to a variable of an existing NetCDF file. NCWRITE (FILENAME, VARNAME, VARDATA) writes the whole variable; NCWRITE (..., START, STRIDE) writes a hyperslab (1-based START). The data are converted to the variable's type, scale_factor/add_offset are inverted and NaN becomes the fill value. Writing past the end of the unlimited dimension extends it.