| Contents | Index |
cdflib.getVarSparseRecords(cdfId,varNum,stype)
cdflib.getVarSparseRecords(cdfId,varNum,stype) specifies the sparse records type of a variable in a Common Data Format (CDF) file.
Open a multifile CDF and close a variable.
Create a CDF, create a variable, and set the sparse records type of the variable. To run this example you must be in a writable folder.
cdfid = cdflib.create('your_file.cdf');
% Create a variable in the file.
varNum = cdflib.createVar(cdfid,'Time','cdf_int1',1,[],true,[]);
% Set the sparse records type of the variable
cdflib.setVarSparseRecords(cdfid,varNum,'PAD_SPARSERECORDS');
% Check the sparse records type of the variable
stype = cdflib.getVarSparseRecords(cdfid,varNum)
stype =
PAD_SPARSERECORDS
%Clean up
cdflib.delete(cdfid);
clear cdfid
This function corresponds to the CDF library C API routine CDFsetzVarSparseRecords. To use these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.
cdflib.getConstantValue | cdflib.getVarSparseRecords
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |