Main Content


Class: slreq.Requirement
Package: slreq

Return parent requirements set


rsout = reqSet(req)


rsout = reqSet(req) returns the parent requirements 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 requirements set of the requirement req, returned as an slreq.ReqSet object.


Query Requirements Set Information

% Load a new requirements 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 requirements 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

Introduced in R2018a