Skip to Main Content Skip to Search
Product 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.

See Also

cdflib.getConstantNames

Tutorials

  


» Learn more
» Download free kit
» Get trial software

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