Get outgoing links for requirements
myLinks = outLinks(req)
myLinks — Outgoing links
Outgoing links for the requirement, returned as an
Get Incoming and Outgoing Links for Requirements
This example shows how to get incoming and outgoing links for requirements.
Load the requirement set
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);
To get the outgoing links for a referenced requirement, use
slreq.Reference.outLinks. To get the outgoing links for a justification, use
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.
Introduced in R2017b