Main Content


Class: slreq.Reference
Namespace: slreq

Return parent requirement set


rsout = reqSet(ref)


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


Query Requirement Set Information

% Load a new requirement 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 requirement 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: {}

Version History

Introduced in R2018a