clear
说明
示例
清除 Requirements Table 块中的需求内容
检索 Requirements Table模块中的需求并清除第一个需求。
requirements = getRequirementRows(reqTable); clear(requirements(1));
清除 Requirements Table 块中的假设内容
检索 Requirements Table模块中的假设并清除第一个假设。
assumptions = getAssumptionRows(reqTable); clear(assumptions(1));
明确需求的预条件
检索 Requirements Table模块中的需求并清除第一个需求的预条件。
requirements = getRequirementRows(reqTable);
clear(requirements(1),"Preconditions");
输入参数
row
— 需求或假设
RequirementRow
对象 | AssumptionRow
对象
Requirements Table模块中的需求或假设,指定为 RequirementRow
或 AssumptionRow
对象。要检索行,请使用 getRequirementRows
、getAssumptionRows
或 getChildren
。
column
— 列类型
"Summary"
| "Preconditions"
| "Duration"
| "Postconditions"
| "Actions"
| ""
要清除的列类型,指定为 "Summary"
、"Preconditions"
、"Duration"
、"Postconditions"
、"Actions"
或者空字符串标量或字符向量。如果 row
是一个动作,那么您只能清除摘要、预条件或后条件。如果将 column
指定为空字符串标量或字符向量,该函数将清除整行。
数据类型: enumerated
版本历史记录
在 R2022a 中推出
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)