Highlight Flow of Logic

To visualize a flow of logic, you can highlight one transition cell per row in your state transition table. For example, you might want to highlight the primary flow of logic from one state to another or the flow that represents an error condition.

The highlighting persists across MATLAB sessions and appears in the autogenerated state transition diagram as well as the state transition table.

To highlight transition cells:

  1. In the transition table editor, right-click the transition cell and select Mark as primary transition.

    The transition cell appears with a red border.

  2. Highlight additional cells, one per row, to complete the flow.

    For example:

  3. To view the flow in the autogenerated state diagram, select Table > View State Diagram.

    The transitions that represent the flow appear highlighted in the diagram.

Was this topic helpful?