Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个状态流,它处理以下伪代码:
if input1==1 then new_state=state2; else if input==2 then new_state=state3; else new_state=error_state; end if;
如何在 Stateflow 中为 else 建模?目前我正在使用 [~(input==1 || input==2)],但是当我有 10 个转换时,它变得非常讨厌。
您需要以下类型的构造。从state_one关于下一步移动到哪里的决定是在每个连续做出的junction。
state_one
junction