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
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!