how to programtically add junctions and default transition in state flow and connect them

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 17 Ago 2023
Modificato: Fangjun Jiang il 17 Ago 2023
transition = Stateflow.Transition(ch);
transition.Source = [];% this makes it default transition.
transition.Destination = j2;
transition.LabelString = '{xx;yy;zz;}';
  6 Commenti
Fangjun Jiang
Fangjun Jiang il 22 Ago 2023
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Complex Logic in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by