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

8 次查看(过去 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