How to create a clean netcdf file using the built-in toolbox of Matlab