帮助中心帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
检索 Requirements Table模块中的子需求和假设
自 R2022a 起
children = getChildren(row)
示例
children = getChildren(row) 返回 row 指定的行的子需求或假设。
children
row
全部折叠
从名为 myModel 的模型中检索 RequirementsTable 对象。
myModel
RequirementsTable
table = slreq.modeling.find("myModel");
将顶级需求作为 RequirementRow 对象数组进行检索。
RequirementRow
row = getRequirementRows(table);
以 RequirementRow 对象数组的形式检索第一个需求的子需求。
children = getChildren(row(1));
您可以通过在子行上调用 getChildren 来找到子行的子行。
getChildren
AssumptionRow
Requirements Table模块中的需求或假设,指定为 RequirementRow 或 AssumptionRow 对象。要检索行,请使用 getRequirementRows 或 getAssumptionRows。
getRequirementRows
getAssumptionRows
子需求或假设,指定为 RequirementRow 或 AssumptionRow 对象的数组。有关 Requirements Table 块中需求层次结构的更多信息,请参阅 在 Requirements Table 模块中建立层次结构。
在 R2022a 中推出
addRequirementRow
addAssumptionRow
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office