Add stereotype to profile



stereotype = addStereotype(profile,stereotypeName) adds a new stereotype with the specified name.

stereotype = addStereotype(profile,stereotypeName,Name,Value) specifies the properties of the stereotype.


collapse all

Add a component stereotype to the profile.


Input Arguments

collapse all

Profile object, specified as a systemcomposer.profile.Profile object.

Name of new stereotype, specified as a character vector. The name of the stereotype must be unique within the profile.

Data Types: char

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: addStereotype(profile,'electricalComponent','AppliesTo','Component')

See systemcomposer.profile.Stereotype for stereotype properties and values.

Output Arguments

collapse all

Created stereotype, returned as a systemcomposer.profile.Stereotype object.

Introduced in R2019a