how to programtically add junctions and default transition in state flow and connect them

2 views (last 30 days)
hello, as following shows i want use script to add the defualt transition and two junction, and connect two junctions, add the action label, how to do

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 17 Aug 2023
Edited: Fangjun Jiang on 17 Aug 2023
transition = Stateflow.Transition(ch);
transition.Source = [];% this makes it default transition.
transition.Destination = j2;
transition.LabelString = '{xx;yy;zz;}';
  6 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!