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 Center および File ExchangeComplex Logic についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by