how to programtically add junctions and default transition in state flow and connect them
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
wenchao zhang
il 17 Ago 2023
Commentato: wenchao zhang
il 22 Ago 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1458627/image.png)
0 Commenti
Risposta accettata
Fangjun Jiang
il 17 Ago 2023
Modificato: Fangjun Jiang
il 17 Ago 2023
transition = Stateflow.Transition(ch);
transition.Source = [];% this makes it default transition.
transition.Destination = j2;
transition.LabelString = '{xx;yy;zz;}';
6 Commenti
Fangjun Jiang
il 22 Ago 2023
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Complex Logic in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!