Main Content

getInterfaceNames

Get names of all interfaces in dictionary

Description

interfaceNames = getInterfaceNames(dictionary) gets the names of all interfaces in the dictionary.

example

Examples

collapse all

Create a model, add three data interfaces, and get interface names. Confirm by opening the Interface Editor.

arch = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
addInterface(arch.InterfaceDictionary,"newInterfaceA");
addInterface(arch.InterfaceDictionary,"newInterfaceB");
addInterface(arch.InterfaceDictionary,"newInterfaceC");
interfaceNames = getInterfaceNames(arch.InterfaceDictionary)
interfaceNames =

  1×3 cell array

    {'newInterfaceA'}    {'newInterfaceB'}    {'newInterfaceC'}

Input Arguments

collapse all

Data dictionary, specified as a systemcomposer.interface.Dictionary object. For information on how to create a data dictionary, see createDictionary.

Output Arguments

collapse all

Interface names, returned as a cell array of character vectors.

Data Types: char

More About

collapse all

Version History

Introduced in R2019a

See Also

Functions

Objects

Blocks

Tools