Main Content

removeProperty

Remove property from stereotype

Description

example

removeProperty(stereotype,propertyName) removes a property from the stereotype.

Examples

collapse all

Add a component stereotype and add a VoltageRating property with value 5. Then remove the property.

stereotype = addStereotype(profile,'electricalComponent','AppliesTo','Component')
property = addProperty(stereotype,'VoltageRating','DefaultValue','5');
removeProperty(stereotype,'VoltageRating');

Input Arguments

collapse all

Stereotype to which property is removed, specified as a systemcomposer.profile.Stereotype object.

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

Data Types: char

Introduced in R2019a