cdflib.setFileBackward

Set backward compatibility mode

Syntax

cdflib.setFileBackward(mode)

Description

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

Input Arguments

mode

Compatibility mode, specified as one of these character vectors or string scalars.

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

Default: 'BACKWARDFILEoff'

Examples

Set backward compatibility mode and then check the value.

cdflib.setFileBackward('BACKWARDFILEon');

mode = cdflib.getFileBackward

mode =

BACKWARDFILEon

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.

Tips

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

References

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.