MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
检索 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
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处