Main Content

destroy

Remove model element

Since R2019a

Description

example

destroy(element) removes and destroys the architecture model element element.

Examples

collapse all

Create a component, newComponent, then remove it from the model.

model = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
rootArch = get(model,"Architecture");
newComponent = addComponent(rootArch,"newComponent");
destroy(newComponent)

Input Arguments

collapse all

Version History

Introduced in R2019a