MATLAB 도움말 센터
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의