Main Content

addInnerTransitionPathRow

R2026b

Add inner transition path row to state transition table row

Since R2026b

Description

row = addInnerTransitionPathRow(parentRow) adds an inner transition path row to the existing row parentRow and returns the new row as a Stateflow.StateTransitionTableRow object. Inner transition paths define transitions that remain within the parent state.

example

Examples

collapse all

Create an inner transition path row for transitions that remain within a parent state.

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 state row and then add an inner transition path row to it.

parentRow = addStateRow(stt);
parentRow.Name = "Active";
innerRow = addInnerTransitionPathRow(parentRow);

Input Arguments

collapse all

Parent state row to which to add the inner transition path row, specified as a Stateflow.StateTransitionTableRow object.

Output Arguments

collapse all

New inner transition path row, returned as a Stateflow.StateTransitionTableRow object. The row has a RowType of "inner-transition".

Version History

Introduced in R2026b

expand all