This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Open existing Common Data Format (CDF) file


cdfId =


cdfId = opens an existing Common Data Format (CDF) file. filename is a text string that identifies the file.

This function returns a CDF file identifier, cdfId.

All CDF files opened this way have the zMode set to zModeon2. Refer to the CDF User's Guide for information about zModes.


Open the example CDF file:

cdfId ='example.cdf');

% Clean up

clear cdfId

Related Examples


This function corresponds to the CDF library C API routine CDFopenCDF.

To use this function, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF website.

For copyright information, see the cdfcopyright.txt file.

Was this topic helpful?