Main Content

removeProfile

Class: slreq.ReqSet
Namespace: slreq

Remove profile from requirement set

Since R2022b

Syntax

tf = removeProfile(rs,fileName)

Description

tf = removeProfile(rs,fileName) removes the profile, fileName, from the requirement set rs.

Note

If you remove a profile, Requirements Toolbox™ applies these changes to requirements that used a stereotype from the profile:

  • Sets the requirement type to Functional

  • Removes the stereotype properties and deletes the stereotype property values

Input Arguments

expand all

Requirement set, specified as an slreq.ReqSet object.

Profile file name, specified as a string scalar or character vector.

Example: "myProfile.xml"

Output Arguments

expand all

Remove success status, returned as a 1 or 0 of data type logical.

Examples

expand all

This example shows how to get profiles assigned to a requirement set and remove profiles.

Load the myAddRequirements2 requirement set.

rs = slreq.load("myAddRequirements2");

Get the profiles assigned to the requirement set.

fileNames = profiles(rs)
fileNames = 1x1 cell array
    {'myAddProfile.xml'}

Remove the myAddProfile profile from the requirement set.

tf = removeProfile(rs,"myAddProfile.xml")
tf = logical
   1

Tips

  • To remove profiles from link sets, use the removeProfile method of slreq.LinkSet.

Version History

Introduced in R2022b