Main Content

getInterfaceNames

Get cell array of interface names in Simulink interface dictionary

Since R2022b

Description

example

interfaceNames = getInterfaceNames(dictObj) returns a cell array of the interface names in the interface dictionary.

Examples

collapse all

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

myInterfaceNames = getInterfaceNames(dictAPI)
myInterfaceNames =

  1×2 cell array

    {'DataInterface'}    {'DataInterface2'}

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 Simulink.interface.dictionary.open.

Output Arguments

collapse all

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

Example: {'DataInterface'} {'DataInterface2'}

Version History

Introduced in R2022b

expand all