Main Content

deleteRow

R2026b

Delete row from state transition table

Since R2026b

Description

deleteRow(row) deletes the specified row from the state transition table. The table must have at least one state row; deleting the last state row returns an error.

example

Examples

collapse all

Remove a state row from a table.

Open a model that contains a state transition table and get a handle to the table.

open_system("myModel")
stt = find(sfroot, "-isa", "Stateflow.StateTransitionTableChart", ...
    Name="mySTT");

Get a row and delete it from the table.

row = getRow(stt, "Idle");
deleteRow(row);

Input Arguments

collapse all

Row to delete from the state transition table, specified as a Stateflow.StateTransitionTableRow object.

Version History

Introduced in R2026b

expand all