Main Content


Class: slreq.ReqSet
Namespace: slreq

Get profiles assigned to requirement sets

Since R2022b


fileNames = profiles(rs)


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.


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

Remove the myAddProfile profile from the requirement set.

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


  • To get profiles assigned to link sets, use the profiles method of slreq.LinkSet.

Version History

Introduced in R2022b