Skip to Main Content Skip to Search
Product Documentation

cdflib.getVersion - Common Data Format (CDF) library version and release information

Syntax

[version,release,increment] = cdflib.getVersion(cdfId)

Description

[version,release,increment] = cdflib.getVersion(cdfId) returns information about the version of the Common Data Format (CDF) library used to create a CDF file.

Input Arguments

cdfId

Identifier of a CDF file, returned by a call to cdflib.create or cdflib.open.

Output Arguments

version

Numeric value indicating the version number of the CDF library.

release

Numeric value indicating the release number of the CDF library.

increment

Numeric value indicating the increment number of the CDF library.

Examples

Open the example CDF file, and then find out the version of the CDF library used to create it:

cdfId = cdflib.open('example.cdf');

[version, release, increment] = cdflib.getVersion(cdfId)

version =

     2

release =

     7

increment =

     8

% Clean up
cdflib.close(cdfId)
clear cdfId

References

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

Tutorials

  


» Learn more
» Download free kit
» Get trial software

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