Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

configureDictionary

Generate a dictionary with defined key and value types.

Syntax

  • d = configureDictionary(keyType, valueType)

Input argument

  • keyType - Key data type: string scalar or character vector.
  • valueType - Value data type: string scalar or character vector.

Output argument

  • 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.

Example

d1 = configureDictionary("string", "single")
d2 = configureDictionary("cell", "struct")

See also

dictionary, isConfigured.

History

VersionDescription
1.5.0initial version

Author

Allan CORNET