Main Content

getDataTypeNames

Get names of data types in Architectural Data section of Simulink data dictionary

Since R2023b

    Description

    example

    dataTypeNames = getDataTypeNames(archDataObj) returns a cell array of the data type names in archDataObj, the Architectural Data section of a data dictionary.

    example

    dataTypeNames = getDataTypeNames(archDataObj,LookInsideDictReferences=tf) returns data type names in the top data dictionary only, or in the top data dictionary and in referenced data dictionaries.

    Examples

    collapse all

    To get a cell array of the data type names in a data dictionary, use the getDataTypeNames function. For an example that shows more of the workflow for related functions, see Create Architectural Data Object and Use It to Configure Architectural Data.

    dataTypeNames = getDataTypeNames(archDataObj)
    dataTypeNames =
    
      1×7 cell array
    
      Columns 1 through 3
    
        {'myAliasType1'}    {'myAliasType2'}    {'myAliasType3'}
      
      Column 4 through 6
        
        {'myColor'}    {'myStructType1'}    {'myStructType2'}
    
      Column 7
    
        {'myValueType1'}

    Input Arguments

    collapse all

    Architectural Data object, specified as a Simulink.dictionary.ArchitecturalData object.

    Flag to list constants in referenced data dictionaries in the returned cell array, specified as one of these values:

    • true — Data types in the referenced data dictionaries will be included in the returned cell array.

    • false — Data types in the referenced data dictionaries will not be included in the returned cell array.

    Example: true

    Output Arguments

    collapse all

    Data type names in DataTypes property array of archDataObj, returned as a cell array of character vectors.

    Version History

    Introduced in R2023b