フィルターのクリア

How to implement transition conditions ?

2 ビュー (過去 30 日間)
Farhan
Farhan 2013 年 12 月 25 日
回答済み: Jorge Calvo 2021 年 11 月 2 日
Hi, I am a beginner in State Flow Diagrams. I have a query. How to apply more than one condition in state transition for example if I have two states and condition from one state to other is that when heel sensor=1 and toe sensor=1 or ankle velocity >0. How do I apply this condition in state flow.
Looking Forward Farhan

回答 (1 件)

Jorge Calvo
Jorge Calvo 2021 年 11 月 2 日
That would depend on the logic you want to implement, but you could try one of these:
  • [heel==1 & toe==1 | velocity>0]
  • [(heel==1 toe==1) | velocity>0]
Alternatively, you can define your logic by using a transition path with multiple transitions joined by connective junctions. For more information, see https://www.mathworks.com/help/stateflow/ug/connective-junctions.html.

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by