| Contents | Index |
[noFillMode,fillValue] = netcdf.inqVarFill(ncid,varid)
[noFillMode,fillValue] = netcdf.inqVarFill(ncid,varid) returns the fill mode and the fill value for the variable varid in the file or group specified by ncid.
ncid |
Identifier of a NetCDF file, returned by netcdf.create or netcdf.open, or a NetCDF group, returned by netcdf.defGrp. |
varid |
Identifier of NetCDF variable. |
This example opens the NetCDF sample dataset and gets the fill mode and fill value used with a variable.
ncid = netcdf.open('example.nc','NOWRITE');
varid = netcdf.inqVarID(ncid,'temperature');
[noFillMode,fillValue] = netcdf.inqVarFill(ncid,varid);
netcdf.close(ncid);This function corresponds to the nc_inq_var_fill function in the netCDF library C API.
For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.
netcdf | netcdf.defVarFill | netcdf.setFill

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |