Main Content

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

clear

清除 Requirements Table模块中的行

自 R2022a 起

说明

示例

clear(row) 清除需求或假设中的行内容,row

示例

clear(row,column) 清除行的指定列。

示例

全部折叠

检索 Requirements Table模块中的需求并清除第一个需求。

requirements = getRequirementRows(reqTable);
clear(requirements(1));

检索 Requirements Table模块中的假设并清除第一个假设。

assumptions = getAssumptionRows(reqTable);
clear(assumptions(1));

检索 Requirements Table模块中的需求并清除第一个需求的预条件。

requirements = getRequirementRows(reqTable);
clear(requirements(1),"Preconditions");

输入参数

全部折叠

Requirements Table模块中的需求或假设,指定为 RequirementRowAssumptionRow 对象。要检索行,请使用 getRequirementRowsgetAssumptionRowsgetChildren

要清除的列类型,指定为 "Summary""Preconditions""Duration""Postconditions""Actions" 或者空字符串标量或字符向量。如果 row 是一个动作,那么您只能清除摘要、预条件或后条件。如果将 column 指定为空字符串标量或字符向量,该函数将清除整行。

数据类型: enumerated

版本历史记录

在 R2022a 中推出