Adding state flow blocks in simulink models automatically

Hi all,
I have a question on state flow construction automatically. In simulink I can use add_block to add chart in a simulink model. While how can I add states or transitions using m code?
Thanks in advance.

Categories

Find more on Modeling in Help Center and File Exchange

Asked:

on 24 Sep 2019

Answered:

on 24 Sep 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!