Main Content


Class: slreq.LinkSet
Package: slreq

Get profiles assigned to link set


fileNames = profiles(myLinkSet)


fileNames = profiles(myLinkSet) returns the file names of the profiles assigned to the link set myLinkSet.

Input Arguments

expand all

Link set, specified as an slreq.LinkSet object.

Output Arguments

expand all

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


expand all

This example shows how to get the profiles assigned to a link set and how to remove a profile.

Load the myAddRequirements requirement set, which also loads the myAddProfile link set.

rs = slreq.load("myAddRequirements");

Find the myAddProfile link set.

myLinkSet = slreq.find(Type="LinkSet",Description="myAdd");

Get the profiles assigned to the link set.

fileName = profiles(myLinkSet)
fileName = 1×1 cell array

Remove the profile from the link set.

tf = removeProfile(myLinkSet,fileName{1})
tf = logical


Version History

Introduced in R2022b