how to programtically add junctions and default transition in state flow and connect them
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
wenchao zhang
el 17 de Ag. de 2023
Comentada: wenchao zhang
el 22 de Ag. de 2023
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1458627/image.png)
0 comentarios
Respuesta aceptada
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
el 22 de Ag. de 2023
It is char(10) or newline();
transition.LabelString = ['{xx;',newline,'yy;',newline,'zz;}'];
Más respuestas (0)
Ver también
Categorías
Más información sobre Complex Logic en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!