Main Content

Open existing Common Data Format (CDF) file


cdfId =


cdfId = opens an existing Common Data Format (CDF) file. filename is a character vector or string scalar 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


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

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