Main Content

removeRow

Remove Requirements Table block row

Since R2022a

Description

removeRow(reqTable,row) removes the row specified by row in the Requirements Table block, specified by reqTable.

example

Examples

collapse all

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

requirements = getRequirementRows(reqTable);
removeRow(reqTable,requirements(1));

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

assumptions = getAssumptionRows(reqTable);
removeRow(reqTable,assumptions(1));

Input Arguments

collapse all

Requirements Table block, specified as a RequirementsTable 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.

Tips

  • If you remove a row that has children, the child rows are also removed.

Version History

Introduced in R2022a