Documentation

cdflib.getConstantValue

Numeric value corresponding to Common Data Format (CDF) library constant

Syntax

value = cdflib.getConstantValue(constantName)

Description

value = cdflib.getConstantValue(constantName) returns the numeric value of the CDF library constant specified by the text string constantName. To see a list of constant names, use cdflib.getConstantNames.

Examples

View the list of CDF library constants and get the numeric value corresponding to one of the constants.

% Retrieve a list of library constants
names = cdflib.getConstantNames();

value  = cdflib.getConstantValue(names{1})

value =

   3

References

For copyright information, see the cdfcopyright.txt file.

Was this topic helpful?