Main Content

stateflow

Open Stateflow library window and create Simulink model that contains an empty chart

Syntax

Description

stateflow creates an untitled Simulink® model that contains an empty Stateflow® chart. The function also opens the Stateflow block library. From this library, you can drag Stateflow blocks into models or access the Stateflow Examples Library.

Tips

  • To only create a Simulink model that contains an empty Stateflow block, use the sfnew function.

  • To only open the Stateflow block library, use the sflib function.

  • To create a standalone chart that you can execute as a MATLAB® object, open the Stateflow editor by using the edit function. For example, at the MATLAB Command Window, enter:

    edit chart.sfx
    For more information, see Create Stateflow Charts for Execution as MATLAB Objects.

Compatibility Considerations

expand all

Behavior change in future release

See Also

| |

Introduced before R2006a