MATLAB Help Center
Get incoming links for requirement or other linkable item
ks = slreq.inLinks(node)
ks = slreq.inLinks(node) returns incoming links ks, a Link or Link array, to nodes, a Requirement, Reference, or other linkable item.
ks
node
Link
nodes
Requirement
Reference
example
collapse all
This example uses:
This example shows how to determine the incoming link for a requirement and outgoing link for a model object.
Load the reqs_validation_property_proving_original_model model and the original_thrust_reverser_requirements requirement set.
reqs_validation_property_proving_original_model
original_thrust_reverser_requirements
load_system("reqs_validation_property_proving_original_model"); rqset = slreq.load("original_thrust_reverser_requirements.slreqx");
Get a handle to requirement with the index 11 in the requirement set.
11
req = slreq.find(Type="Requirement",Index=11);
Get the incoming links for the requirement.
inLinks = slreq.inLinks(req);
Get the link source for the incoming link.
lkSrc = source(inLinks);
Convert the link source from a structure to a model object.
mo = slreq.structToObj(lkSrc);
Get the outgoing links for the model object.
outLinks = slreq.outLinks(mo);
A linkable item that may have incoming requirements links. Common examples include a Requirement or Reference. Can be the output of find.
find
Example: Requirement with properties
Requirement with properties
Data Types: struct
struct
A Link or Link array incoming to the linkable item.
Introduced in R2017b
slreq.outLinks | slreq.structToObj
slreq.outLinks
slreq.structToObj
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office