| Contents | Index |
cdflib.setChecksum(cdfId,mode)
cdflib.setChecksum(cdfId,mode) specifies the checksum mode of a Common Data Format (CDF) file.
Create a CDF file and set the checksum mode. To run this example, you must be in a writable folder.
cdfid = cdflib.create('mycdf.cdf');
% Check initial value of checksum.
mode = cdflib.getChecksum(cdfid)
NO_CHECKSUM
cdflib.setChecksum(cdfid,'MD5_CHECKSUM')
% Verify the setting
mode = cdflib.getChecksum(cdfid)
MD5_CHECKSUMThis function corresponds to the CDF library C API routine CDFsetChecksum. 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.getChecksum | cdflib.getConstantValue

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 |