Main Content

removeProfile

Remove profile from model

Description

removeProfile(model,profileName) removes the profile from a model.

example

removeProfile(dictionary,profileName) removes the profile from a data dictionary.

removeProfile(allocSet,profileName) removes the profile from an allocation set.

Examples

collapse all

Create a model archModel.

modelName = "archModel";
arch = systemcomposer.createModel(modelName);
systemcomposer.openModel(modelName);

Create a profile with a stereotype and properties, open the Profile Editor, then apply the profile to the model.

profile = systemcomposer.profile.Profile.createProfile("LatencyProfile");
latencybase = profile.addStereotype("LatencyBase");
latencybase.addProperty("latency",Type="double");
latencybase.addProperty("dataRate",Type="double",DefaultValue="10");
systemcomposer.profile.editor(profile)
model.applyProfile("LatencyProfile");

Remove the profile from the model.

model.removeProfile("LatencyProfile");

Input Arguments

collapse all

Architecture model, specified as a systemcomposer.arch.Model object.

Data dictionary, specified as a systemcomposer.interface.Dictionary object. For information on how to create a data dictionary, see createDictionary.

Allocation set, specified as a systemcomposer.allocation.AllocationSet object.

Name of profile, specified as a character vector or string. Profile must be available on the MATLAB® path with a .xml extension.

Example: "LatencyProfile"

Data Types: char | string

More About

collapse all

Version History

Introduced in R2019a