Main Content
cdflib.getConstantValue
Numeric value corresponding to Common Data Format (CDF) library constant
Syntax
value = cdflib.getConstantValue(constantName)
Description
value = cdflib.getConstantValue(
returns the numeric value of the CDF library constant specified in
constantName
)constantName
. Specify constantName
as a
character vector or string scalar. 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
Tips
This function is a MATLAB® utility function and does not correspond to any function in the CDF library C API.