Skip to Main Content Skip to Search
Product Documentation

cdflib.close - Close Common Data Format (CDF) file

Syntax

cdflib.close(cdfId)

Description

cdflib.close(cdfId) closes the specified CDF file. cdfId identifies the CDF file.

You must close a CDF to guarantee that all modifications you made since opening the CDF are actually written to the file.

Examples

Open the example CDF file and then close it.

cdfid = cdflib.open('example.cdf');
cdflib.close(cdfid)

References

This function corresponds to the CDF library C API routine CDFcloseCDF. 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.

See Also

cdflib.create | cdflib.open

Tutorials

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS