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

채택된 답변

Fangjun Jiang
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
Fangjun Jiang 2023년 8월 22일
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by