I have designed a state machine in stateflow. it consists of several variable and states. however, when I am generating code using embedded Coder, multiple states, variables and even transitions are missing from code. on clicking on that particlar state, Stateflow prompts "Stateflow object eliminated by optimization". kindly suggest how to ensure all states and variables are present in the final code as they are in state machine
I am not able to find solution even after trying multiple setting changes and checking online