configureDictionary
Generate a dictionary with defined key and value types.
📝Syntax
d = configureDictionary(keyType, valueType)
📥Input Arguments
Parameter Description
keyType Key data type: string scalar or character vector.
valueType Value data type: string scalar or character vector.
📤Output Arguments
Parameter Description
d scalar: a dictionary object.
📄Description

d = configureDictionary(keyType, valueType) initializes an empty dictionary that enforces keys of type keyType and values of type valueType.

💡Examples
d1 = configureDictionary("string", "single")
d2 = configureDictionary("cell", "struct")
🔗See Also
dictionaryisConfigured
🕔Version History
Version Description
1.5.0 initial version
Edit this page on GitHub