Decision Logic

Control flow, combinational, and procedural logic for decision-making applications


Chart Implement control logic with finite state machine
Truth Table Represent logical decision-making behavior with conditions, decisions, and actions

Examples and How To

Create Flow Charts with the Pattern Wizard

Describes how to create MAAB-compliant flow charts automatically with the Pattern Wizard

Draw and Customize Flow Charts By Hand

Describes how to create flow charts by drawing connective junctions and transitions by hand

Enhance Readability of Code for Flow Charts

Describes how to convert if-elseif-else code to switch-case statements to enhance readability of generated code

Build Model with Stateflow Truth Table

Shows you how to create a model that calls and executes a Stateflow® chart with a truth table

Build Model with MATLAB Function in a Chart

Procedure for building a Simulink® model with a Stateflow chart that calls a MATLAB® function


What Is a Flow Chart?

Defines and describes flow charts

Difference Between Flow Charts and State Transition Diagrams

Compares flow charts and state transition diagrams

When to Use Flow Charts

Describes the applications and best practices for flow charts

Best Practices for Creating Flow Charts

Describes best practices for creating error-free flow charts

Connective Junctions

Describes decision points between alternative transition paths

What Is a Truth Table?

Describes the truth tables that Stateflow truth table functions implement

MATLAB Functions in a Chart

Short description of what this type of function is and what the typical applications are

How Chart Constructs Interact During Execution

Explains how different graphical and nongraphical constructs interact during chart execution

Was this topic helpful?