how to get current path in a stateflow?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want know how to get current system path in a stateflow?like 'gcs' function.
0 comentarios
Respuesta aceptada
Jonas
el 25 de Feb. de 2021
You should look into Stateflow Animations. It will highlight the latest path taken in blue during simulation, and the last path taken when simulation is stopped.
3 comentarios
Jonas
el 25 de Feb. de 2021
I misunderstood indeed.
Use gcb maybe? It works for a Stateflow, but when going outside of a stateflow, it still returns the path of the stateflow.
I am unsure how you intend to use the command, but maybe you can rely on gcs, but perform a check on when gcb returns a stateflow, then use gcb instead.
Jonas
el 25 de Feb. de 2021
Maybe it is not possible...
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!