85 <span class="keyword">end</span>
0086 netcdf.putAtt(nc,netcdf.getConstant(<span class="string">'NC_GLOBAL'</span>),<span class="string">'components'</span>,ComponentsOut)
0087 netcdf.putAtt(nc,netcdf.getConstant(<span class="string">'NC_GLOBAL'</span>),<span class="string">'history'</span>, sprintf(<span class="string">'File created using %s from the MATLAB fvcom-toolbox'</span>, subname))
0088 
0089 <span class="comment">% define dimensions</span>
0090 one_dimid=netcdf.defDim(nc,<span class="string">'on