Stateflow Onramp Task 4: Transition from Off to On marked incorrect despite matching solution

조회 수: 5 (최근 30일)
I'm working on Stateflow Onramp > Creating State Charts > Default Transitions and Unreachable States (Task 4). The task asks to:
Add a transition from Off to On.
I added the transition exactly as shown in the solution — from the edge of the Off state to the edge of the On state. The chart visually matches the solution, and there's a default transition to Off.
However, after clicking Submit, I still get the message:
Sorry, that answer is incorrect. Please review the requirements on the right side.
There are no conditions or events on the transition (as per the example), and both states are reachable, as both get highlighted during the run.
What could I be missing? Is there a hidden requirement not shown in the visual solution?
Thanks in advance!

답변 (1개)

Jacob Mathew
Jacob Mathew 2025년 7월 28일
Hey Vibha,
I and others in this MATLAB Answers Post too https://www.mathworks.com/matlabcentral/answers/2002487-stateflow-onramp-unreachable-state-task-4-error are also facing the same issue in MATLAB R2023b.
I then tried it out in MATLAB R2024a and it works without issue. I think you will need to update to MATLAB R2024a or later to get around this roadblock.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by