MATLAB: HI. I need to convert output of MATLAB to netcdf file with Command ncwriteschema and ncwrite. I studied MATLAB’s help But I did not understand. can you explain by example

ncwrite

mySchema.Name = '/';
mySchema.Format = 'classic';
mySchema.Dimensions(1).Name = 'time';
mySchema.Dimensions(1).Length = Inf;
mySchema.Dimensions(2).Name = 'rows';
mySchema.Dimensions(2).Length = 10;
ncwriteschema('emptyFile.nc', mySchema);
ncdisp('emptyFile.nc');

Best Answer

YOu may have look into below link....this might be of your interest.