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

4 visualizaciones (últimos 30 días)
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!

Respuestas (1)

Jacob Mathew
Jacob Mathew el 28 de Jul. de 2025
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.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by