This enhancement has been incorporated in Release 2010a (R2010a). For previous product releases, read below for any possible workarounds:
While using netCDF, when an unlimited dimension is created i.e., a dimension that can grow, the dimension length is set equal to zero by default. While growing this dimension, you need to specify the start and count. Note that if you are writing to a netCDF variable that has been defined as having N dimensions, the start and count arguments must both be N-element vectors:
netcdf.putVar(nc, t_id, 0, 3, [1 2 3]);
netcdf.putVar(nc, z_id, [0 0], [30 20], rand(30,20));
Best Answer