how to programtically add junctions and default transition in state flow and connect them
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
wenchao zhang
am 17 Aug. 2023
Kommentiert: wenchao zhang
am 22 Aug. 2023
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
0 Kommentare
Akzeptierte Antwort
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
am 22 Aug. 2023
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Complex Logic finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!