MATLAB: Am I unable to place a debug point in an Embedded MATLAB function in Simulink 7.3 (R2009a)

simulink

I have an Embedded MATLAB block which I want to debug but the Debug options appear disabled in the Embedded MATLAB Editor. When I create a new model with the same Embedded MATLAB block, I am able to place debug points.

Best Answer

The debugging options need to be enabled for the Embedded MATLAB and Stateflow blocks.
In order to enable the debugging option please perform the following:
1. Open the model
2. Open the model Configuration Parameters pane (CTRL + E)
3. In the Configuration Parameters pane, browse to the Simulation Target Option and enable the checkbox for "Enable Debugging/Animation"
You should now be able to place debug points in the Embedded MATLAB code.