This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Set backward compatibility mode




cdflib.setFileBackward(mode) sets the backward compatibility mode to the value specified by mode.

Input Arguments


One of the following character vectors:

'BACKWARDFILEon'Set backward compatibility mode on.
'BACKWARDFILEoff'Set backward compatibility mode off.

Default: 'BACKWARDFILEoff'


Set backward compatibility mode and then check the value.


mode = cdflib.getFileBackward

mode =


More About

collapse all

backward compatibility mode

When specified, ensures that any new CDF file created using CDF V3.0 (or later) will be readable by clients using version 2.7 of the CDF library. CDF 3.0 and later releases use a 64-bit file offset to allow for files greater than 2G bytes in size. CDF library versions released before CDF 3.0 use a 32-bit file offset.


  • Setting backward compatibility mode affects only your current MATLAB® session, or until you call cdflib.setFileBackward again.


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

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?