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!