getDataTypeNames - Get names of data types in Architectural Data section of Simulink data dictionary - MATLAB (original) (raw)

Main Content

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

Since R2023b

Syntax

Description

[dataTypeNames](#mw%5F1182b0b4-5eae-49bc-a272-089eaa3056b2) = getDataTypeNames([archDataObj](#mw%5Fdae00d6a-e8d4-4b68-be2c-86aa9d8472d0)) returns a cell array of the data type names in archDataObj, the Architectural Data section of a data dictionary.

example

[dataTypeNames](#mw%5F1182b0b4-5eae-49bc-a272-089eaa3056b2) = getDataTypeNames([archDataObj](#mw%5Fdae00d6a-e8d4-4b68-be2c-86aa9d8472d0),LookInsideDictReferences=[tf](#mw%5F92fed163-e1fd-410f-a0ae-a0e683db1cf8)) returns data type names in the top data dictionary only, or in the top data dictionary and in referenced data dictionaries.

example

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

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

Example: true

Output Arguments

collapse all

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

Version History

Introduced in R2023b