Main Content


Get names of data types in Simulink interface dictionary

Since R2022b



dataTypeNames = getDataTypeNames(dictObj) returns a cell array of the data type names in the dictionary.


collapse all

To get a cell array of the data type names in the dictionary, use the getDataTypeNames function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

dataTypeNames = getDataTypeNames(dictAPI)
dataTypeNames =

  1×7 cell array

  Columns 1 through 3

    {'myAliasType1'}    {'myAliasType2'}    {'myAliasType3'}

  Columns 4 through 6

    {'myColor'}    {'myStructType1'}    {'myStructType2'}

  Column 7


Input Arguments

collapse all

Interface dictionary, specified as a Simulink.interface.Dictionary object. Before you use this function, create or open dictObj by using Simulink.interface.dictionary.create or

Output Arguments

collapse all

DataType definition names in DataTypes property array of dictObj, specified as a cell array of character vectors or a string array.

Example: {'myAliasType1'} {'myAliasType2'} {'myAliasType3'}

Version History

Introduced in R2022b

expand all