필터 지우기
필터 지우기

how to get current path in a stateflow?

조회 수: 6 (최근 30일)
asid
asid 2021년 2월 25일
댓글: Jonas 2021년 2월 25일
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.
Jonas
Jonas 2021년 2월 25일
I also found this MATLAB Question and Answer.
Maybe it is not possible...

댓글을 달려면 로그인하십시오.

추가 답변 (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