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

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Complex Logic en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by