主要内容

getTransitionCell

R2026b

Get transition cell at specified row and column index in state transition table

Since R2026b

Description

cell = getTransitionCell(stt,rowIndex,columnIndex) returns the Stateflow.StateTransitionTableCell object at the specified row index and column index in the state transition table stt.

example

Examples

collapse all

Access a specific transition cell by row and column index.

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 the transition cell at the first row and first column.

cell = getTransitionCell(stt, 1, 1);

Input Arguments

collapse all

State transition table from which to get the transition cell, specified as a Stateflow.StateTransitionTableChart object.

Row index of the transition cell, specified as a positive integer. The row index corresponds to the position of the row in the table.

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

Output Arguments

collapse all

Transition cell at the specified row and column index, returned as a Stateflow.StateTransitionTableCell object.

Version History

Introduced in R2026b

expand all