clear
Description
Examples
Clear Contents of Requirement in Requirements Table Block
Retrieve the requirements in a Requirements Table block and clear the first requirement.
requirements = getRequirementRows(reqTable); clear(requirements(1));
Clear Contents of Assumption in Requirements Table Block
Retrieve the assumptions in a Requirements Table block and clear the first assumption.
assumptions = getAssumptionRows(reqTable); clear(assumptions(1));
Clear Preconditions of Requirement
Retrieve the requirements in a Requirements Table block and clear the preconditions of the first requirement.
requirements = getRequirementRows(reqTable);
clear(requirements(1),"Preconditions");
Input Arguments
row
— Requirement or assumption
RequirementRow
object | AssumptionRow
object
Requirement or assumption in a Requirements Table block, specified as a
RequirementRow
or AssumptionRow
object. To retrieve the row, use getRequirementRows
, getAssumptionRows
, or getChildren
.
column
— Column type
"Summary"
| "Preconditions"
| "Duration"
| "Postconditions"
| "Actions"
| ""
Column type to clear, specified as either "Summary"
,
"Preconditions"
, "Duration"
,
"Postconditions"
, "Actions"
, or an empty string
scalar or character vector. If row
is an action, you can only clear
the summary, preconditions, or postconditions. If you specify
column
as an empty string scalar or character vector, the
function clears the entire row.
Data Types: enumerated
Version History
Introduced in R2022a
See Also
MATLAB Command
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.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)