removeElement

Remove a signal interface element

Description

example

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,'newInterface');
element = addElement(interface,'newElement','Type',double);
removeElement(interface,'newInterface')

Input Arguments

collapse all

Interface object, specified as a systemcomposer.interface.SignalInterface object.

Name of element to be removed, specified as a character vector.

Data Types: char

Introduced in R2019a