nccreate
NCCREATE Create a variable in a NetCDF file.
NCCREATE (FILENAME, VARNAME) creates a scalar double variable. If
FILENAME does not exist, the file is created with Format
'netcdf4_classic' (MATLAB R2026a default).
NCCREATE (..., 'Dimensions', {'lon', 5, 'lat', 4, 'time', Inf}, ...
'Datatype', 'double', 'Format', 'classic'|'64bit'|'netcdf4_classic'|...
'netcdf4', 'FillValue', V) sets dimensions, type and format. Inf (or
0) makes a dimension unlimited.