Main Content

clear

Clear row in Requirements Table block

Since R2022a

Description

clear(row) clears the row content in the requirement or assumption, row.

example

clear(row,column) clears the specified column of the row.

example

Examples

collapse all

Retrieve the requirements in a Requirements Table block and clear the first requirement.

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

Retrieve the assumptions in a Requirements Table block and clear the first assumption.

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

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

collapse all

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 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