Main Content
ncwriteatt
Write attribute to netCDF file
Syntax
Description
ncwriteatt(
creates or modifies the attribute specified by filename
,location
,attname
,attvalue
)attname
in the group or
variable specified by location
in the netCDF file specified by
filename
. The written attribute value is of the netCDF data type that
best matches the MATLAB® data type of attvalue
. For more information about how
MATLAB determines the best match, see MATLAB to NetCDF Data Type Conversion.