Delete range of records from variable
deletes a range of records from a variable in a Common Data Format
Identifier of a CDF file, returned by a call to
Numeric value that identifies the variable. Variable numbers are zero-based.
Numeric value that specifies the record at which to start deleting records. Record numbers are zero-based.
Numeric value that specifies the record at which to stop deleting records. Record numbers are zero-based.
Make a writable copy of the example CDF, get the number of a variable in the CDF, and delete specific records in the variable. To run this example, you must be in a writable folder.
srcFile = fullfile(matlabroot,'toolbox','matlab','demos','example.cdf'); copyfile(srcFile,'myfile.cdf'); fileattrib('myfile.cdf','+w'); cdfid = cdflib.open('myfile.cdf'); varnum = cdflib.getVarNum(cdfid,'Temperature'); cdflib.deleteVarRecords(cdfid,varnum,1,2); cdflib.close(cdfid);
This function corresponds to the CDF library C API routine
To use this function, you must be familiar with the CDF C interface.
Read the CDF documentation at the
For copyright information, see the