主要内容

deleteTransitionColumn

R2026b

Delete transition column from state transition table

Since R2026b

Description

deleteTransitionColumn(stt,columnName) deletes the transition column with the specified name from the state transition table stt. The table must always have at least one transition column; deleting the last column returns an error.

example

deleteTransitionColumn(stt,index) deletes the transition column at the specified numeric index from the state transition table stt.

Examples

collapse all

Remove a transition column by name.

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");

Add a transition column so that the table has at least two columns, then delete the last column by specifying its header name.

addTransitionColumn(stt);
deleteTransitionColumn(stt, "ELSE-IF(2)");

Input Arguments

collapse all

State transition table from which to delete the transition column, specified as a Stateflow.StateTransitionTableChart object.

Name of the transition column to delete, specified as a string scalar or character vector.

Index of the transition column to delete, specified as a positive integer. The index corresponds to the position of the transition column in the table.

Version History

Introduced in R2026b

expand all