Main Content

profiles

Class: slreq.ReqSet
Namespace: slreq

Get profiles assigned to requirement sets

Since R2022b

Syntax

fileNames = profiles(rs)

Description

fileNames = profiles(rs) returns the file names of the profiles assigned to the requirement set rs.

Input Arguments

expand all

Requirement set, specified as an slreq.ReqSet object.

Output Arguments

expand all

Profile file names, returned as a cell array of character vectors.

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 get profiles assigned to link sets, use the profiles method of slreq.LinkSet.

Version History

Introduced in R2022b