Netcdf Toolkit - netcdf.inqVarFill
[no_fill,fillvalue] =netcdf.inqVarFill(ncid,varid)Determines the fill-value settings of the NetCDF variable varid. If no_fill is false, then the values between no-contiguous writes are filled with the value fill_value. This is disabled by setting no_fill to true.