Stateflow beginner, need help with state diagram representation

3 ビュー (過去 30 日間)
Laura
Laura 2024 年 4 月 7 日
回答済み: Benjamin Thompson 2024 年 4 月 9 日
I want to recreate the state diagram of my system in Statflow but I'm not sure how to do it. BM or M represents a switch that engages the window manually, BA or A represents automatic mode engagement. F represents my system.
I've already made a state diagram on paper, it's in French but follows the same model as the digital version
  1 件のコメント
Laura
Laura 2024 年 4 月 7 日
I don't think I represented it well, I put conditions on the arrows but again I don't know if that was the right thing to do. I didn't put an entrance, during or anything on the stalls... Can I improve my diagram? it's for an assignment, thanks for your answers!

サインインしてコメントする。

採用された回答

Benjamin Thompson
Benjamin Thompson 2024 年 4 月 9 日
You may wish to try the Stateflow Onramp training:
https://matlabacademy.mathworks.com/details/stateflow-onramp/stateflow
Just doing a quick review you would want to use the && operator to logically combine your two inputs into a single transition condition:
[(BM==1) && (BW==0)]
For better help you can attach the model file to this thread, and if you have any specific questions about what your model is doing please include them.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by