removeElement

Remove a signal interface element

Description

removeElement(interface,elementName) removes an element from a signal interface.

Examples

collapse all

Add an interface newinterface to the interface dictionary of the model and add an element with type double to it, then remove the element.

interface = addInterface(arch.InterfaceDictionary,'newsignal');
element = addElement(interface,'newelement','Type','double);
removeElement(interface,'newsignal')

Input Arguments

collapse all

Data Types: systemcomposer.interface.SignalInterface

Data Types: char

Introduced in R2019a