Get incoming links for requirements
myLinks = inLinks(req)
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 incoming links for a referenced requirement, use
You can also use the Requirements Editor to view incoming links. Select a requirement. In the right pane, under Links, the incoming links icon indicates incoming links.
Introduced in R2017b