Main Content


Class: slreq.Requirement
Namespace: slreq

Return parent requirement set


rsout = reqSet(req)


rsout = reqSet(req) returns the parent requirement set rsout to which the requirement req belongs.

Input Arguments

expand all

Requirement, specified as an slreq.Requirement object.

Output Arguments

expand all

The parent requirement set of the requirement req, returned as an slreq.ReqSet object.


expand all

% Load a new requirement set file and select one requirement
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
allReqs = find(rs, 'Type', 'Requirement');
req = allReqs(1);

% Query which requirement set req belongs to

ans = 

  ReqSet with properties:

             Description: ''
                    Name: 'My_Requirements_Set_1'
                Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx'
                Revision: 63
                   Dirty: 0
    CustomAttributeNames: {}
               CreatedBy: 'Jane Doe'
               CreatedOn: 27-Feb-2017 10:20:39
              ModifiedBy: 'John Doe'
              ModifiedOn: 08-Mar-2017 09:27:31

Version History

Introduced in R2018a