| Contents | Index |
cdflib.setReadOnlyMode(cdfId,mode)
cdflib.setReadOnlyMode(cdfId,mode) specifies the read-only mode of a Common Data Format (CDF) file.
After you open a CDF file, you can put the file into read-only mode to prevent accidental modification.
Open the example CDF file and set the file to read-only mode.
cdfId = cdflib.open('example.cdf');
% Set the file to READONLY mode
cdflib.setReadOnlyMode(cdfId,'READONLYon')
% Check read-only status of file again.
mode = cdflib.getReadOnlyMode(cdfId)
mode =
READONLYon
% Clean up
cdflib.close(cdfId)
clear cdfIdThis function corresponds to the CDF library C API routine CDFsetReadOnlyMode. 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.getReadOnlyMode
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |