how to programtically add junctions and default transition in state flow and connect them
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Fangjun Jiang
2023 年 8 月 17 日
編集済み: Fangjun Jiang
2023 年 8 月 17 日
transition = Stateflow.Transition(ch);
transition.Source = [];% this makes it default transition.
transition.Destination = j2;
transition.LabelString = '{xx;yy;zz;}';
6 件のコメント
Fangjun Jiang
2023 年 8 月 22 日
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!