Main Content


Class: slreq.Requirement
Package: slreq

Get outgoing links for requirements


myLinks = outLinks(req)


myLinks = outLinks(req) returns the outgoing links for the requirement req.

Input Arguments

expand all

Requirement, specified as an slreq.Requirement object.

Output Arguments

expand all

Outgoing links for the requirement, returned as an slreq.Link array.


expand all

This example shows how to get incoming and outgoing links for requirements.

Load the requirement set basicReqSet.

rs = slreq.load("basicReqSet");

Find the first requirement in the requirement set.

req1 = find(rs,Index=1);

Get the incoming links for the requirement.

myInLinks = inLinks(req1);

Find the second requirement in the requirement set.

req2 = find(rs,Index=2);

Get the outgoing links for the requirement.

myOutLinks = outLinks(req2);


Alternative Functionality


You can also use the Requirements Editor to view outgoing links. Select a requirement. In the right pane, under Links, the outgoing links icon indicates outgoing links.

Version History

Introduced in R2017b