主要内容

本页采用了机器翻译。点击此处可查看英文原文。

inLinks

获取 Requirements Table 模块行的入向链接

自 R2026a 起

说明

myLinks = inLinks(row) 返回 Requirements Table 模块行(即 row)的入向链接。

示例

示例

全部折叠

本示例演示了如何获取 Requirements Table 模块行的入向链接。

获取 myModel 模型中 Requirements Table 模块的 RequirementsTable 对象。

table = slreq.modeling.find("myModel");

获取 RequirementsTable 对象中的需求行。

rows = getRequirementRows(table);
reqRow = rows(1);

获取该需求行对应的入向链接。

myLinks = inLinks(reqRow);

输入参数

全部折叠

Requirements Table 模块中的需求行,指定为 RequirementRow 对象。

输出参量

全部折叠

入向链接,以 slreq.Link 数组的形式返回。

版本历史记录

在 R2026a 中推出