| Contents | Index |
cdflib.setVarAllocBlockRecords(cdfId,varNum,firstrec,lastrec)
cdflib.setVarAllocBlockRecords(cdfId,varNum,firstrec,lastrec) specifies a range of records you want to allocate (but not write) for a variable in a Common Data Format (CDF) file.
Create a CDF, create a variable in the CDF, and then specify the number of records to allocate for 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,'Grades','cdf_int1',1,[],true,[]);
% Specify the number of records to allocate.
cdflib.setVarAllocBlockRecords(cdfid,varNum,1,10);
% Clean up
cdflib.delete(cdfid)
clear cdfidThis function corresponds to the CDF library C API routine CDFsetzVarAllocBlockRecords. To use this function, 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.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |