- Function StringToUnit(str)¶
StringToUnit¶
With the function StringToUnit
you can compute a unit value
corresponding to a given string expression.
StringToUnit(
str ! (input) scalar string expression
)
Arguments¶
- str
A string expression of which the associated unit value must be computed
Return Value¶
The function returns the associated unit value of str, or fails if the given string does not correspond to a string constant.
See also
Unit expressions discussed in full detail in Units of Measurement of the Language Reference.