MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
移除模型元素
destroy(element)
destroy(element) 删除并销毁架构模型元素 element。
element
示例
全部折叠
创建一个组件 newComponent,然后将其从模型中移除。
newComponent
model = systemcomposer.createModel("newModel"); systemcomposer.openModel("newModel"); rootArch = get(model,"Architecture"); newComponent = addComponent(rootArch,"newComponent"); destroy(newComponent)
架构模型元素,指定为这些对象之一:
systemcomposer.arch.Component
systemcomposer.arch.VariantComponent
systemcomposer.arch.ArchitecturePort
systemcomposer.arch.Connector
systemcomposer.arch.PhysicalConnector
systemcomposer.arch.Function
systemcomposer.ValueType
systemcomposer.interface.DataInterface
systemcomposer.interface.DataElement
systemcomposer.interface.PhysicalDomain
systemcomposer.interface.PhysicalInterface
systemcomposer.interface.PhysicalElement
systemcomposer.interface.FunctionArgument
systemcomposer.interface.ServiceInterface
systemcomposer.interface.FunctionElement
systemcomposer.profile.Profile
systemcomposer.profile.Stereotype
systemcomposer.profile.Property
systemcomposer.view.View
systemcomposer.view.ElementGroup
systemcomposer.allocation.AllocationScenario
systemcomposer.allocation.Allocation
systemcomposer.arch.Parameter
systemcomposer.interaction.Interaction
systemcomposer.interaction.Lifeline
systemcomposer.interaction.Message
systemcomposer.interaction.MessageEvent
systemcomposer.interaction.FormalGate
systemcomposer.interaction.AltFragment
systemcomposer.interaction.OptFragment
systemcomposer.interaction.LoopFragment
systemcomposer.interaction.SeqFragment
systemcomposer.interaction.StrictFragment
systemcomposer.interaction.ParFragment
systemcomposer.interaction.Operand
systemcomposer.interaction.Annotation
在 R2019a 中推出
Component | Variant Component | removeElement | removeElement | removeInterface | deleteView | deleteSubGroup | deleteInstance | removeProfile | removeProperty | removeStereotype | removeStereotype | deallocate | deleteScenario
removeElement
removeInterface
deleteView
deleteSubGroup
deleteInstance
removeProfile
removeProperty
removeStereotype
deallocate
deleteScenario
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处