Main Content


Class: slreq.Reference
Package: slreq

Return parent requirements set


rsout = reqSet(ref)


rsout = reqSet(ref) returns the parent requirements set rsout to which the referenced requirement ref belongs.

Input Arguments

expand all

Referenced requirement, specified as a slreq.Reference object.

Output Arguments

expand all

The parent requirements set of the referenced requirement ref, returned as an slreq.ReqSet object.


Query Requirements Set Information

% Load a new requirements set file and select one referenced requirement
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
allRefs = find(rs,'Type','Reference');
ref = allRefs(1);

% Query which requirements set ref belongs to

ans = 

  ReqSet with properties:

             Description: ''
                    Name: 'My_Requirements_Set_1'
                Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx'
                Revision: 65
                   Dirty: 0
    CustomAttributeNames: {}

Introduced in R2018a