how to get current path in a stateflow?

3 Ansichten (letzte 30 Tage)
asid
asid am 25 Feb. 2021
Kommentiert: Jonas am 25 Feb. 2021
I want know how to get current system path in a stateflow?like 'gcs' function.

Akzeptierte Antwort

Jonas
Jonas am 25 Feb. 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 Kommentare
Jonas
Jonas am 25 Feb. 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
Jonas am 25 Feb. 2021
I also found this MATLAB Question and Answer.
Maybe it is not possible...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by