s="string">'File created with %s from the MATLAB fvcom-toolbox'</span>, subname))
0071 
0072 <span class="comment">% Dimensions</span>
0073 nlag_dimid = netcdf.defDim(nc, <span class="string">'nparticles'</span>, nLag);
0074 
0075 <span class="comment">% Particle vars</span>
0076 x_varid = netcdf.defVar(nc, <span class="string">'x'</span>, <span class="string">'NC_FLOAT'</span>, nlag_dimid);
0077 netcdf.putAtt(nc, x_varid, <span class="string">'long_name'</span>, <span class="string">'particle x position'</