how to get current path in a stateflow?

3 次查看(过去 30 天)
I want know how to get current system path in a stateflow?like 'gcs' function.

采纳的回答

Jonas
Jonas 2021-2-25
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 个评论
Jonas
Jonas 2021-2-25
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by