Main Content


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



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.


  • 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