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

2 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 17 Aug. 2023
Bearbeitet: Fangjun Jiang am 17 Aug. 2023
transition = Stateflow.Transition(ch);
transition.Source = [];% this makes it default transition.
transition.Destination = j2;
transition.LabelString = '{xx;yy;zz;}';
  6 Kommentare
Fangjun Jiang
Fangjun Jiang am 22 Aug. 2023
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by