Main Content

configureDictionary

Create dictionary with specified key and value types

Since R2023b

    Description

    d = configureDictionary(keyType,valueType) creates a dictionary with no entries that accepts keys of type keyType and values of type valueType.

    example

    Examples

    collapse all

    Create a dictionary that is configured to accept string keys and double values.

    d = configureDictionary("string","double")
    d =
    
      dictionary (string --> double) with no entries.
    

    Input Arguments

    collapse all

    Key data type, specified as a string scalar or character vector.

    Value data type, specified as a string scalar or character vector.

    Extended Capabilities

    Version History

    Introduced in R2023b

    expand all