Main Content

removeElement

Remove element

Description

removeElement(interface,name) removes an element with name name from an interface interface.

example

Examples

collapse all

Add a data interface newInterface to the dictionary of the model. Add a data element newElement with data type double to the data interface, then remove the data element.

arch = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
interface = addInterface(arch.InterfaceDictionary,"newInterface");
element = addElement(interface,"newElement",DataType="double");
removeElement(interface,"newElement")

Add a physical interface newPhysicalInterface to the dictionary of the model. Add a physical element newElement with domain type electrical.electrical to the physical interface, then remove the physical element.

arch = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
interface = addPhysicalInterface(arch.InterfaceDictionary,"newPhysicalInterface");
element = addElement(interface,"newElement",Type="electrical.electrical");
removeElement(interface,"newElement")

Input Arguments

collapse all

Element name, specified as a character vector or string. An element name must be a valid MATLAB® variable name.

Data Types: char | string

More About

collapse all

Version History

Introduced in R2019a

See Also

Functions

Objects

Blocks

Tools