Stateflow入門のロボット掃除機の所で解答と同じコードを入力しているのですがなぜかクリアすることが出来ないので、解決方法を教えていただきたいです。

 채택된 답변

Atsushi Ueno
Atsushi Ueno 2021년 8월 29일

1 개 추천

{SOC<30}と書くと「SOC<30」が「条件として判断」されません。
[requestMode==1||complete==1]を満足し遷移する時に「SOC<30」が「実行」されてしまいます。
[requestMode==1||complete==1 ********]の様に波括弧を使わず、角括弧の中にSOCの条件判断を含めるべきです。
>遷移ラベルは全体として次のような形式を取ります。
event_or_message[condition]{condition_action}/transition_action

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Stateflow에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 8월 29일

답변:

2021년 8월 29일

Community Treasure Hunt

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

Start Hunting!