You can start the debugger from either a Simulink®model window or from the MATLAB®Command Window.
我n a model window, on theDebugtab, selectBreakpoints List>Debug Model.
打开调试器图形用户界面。看到Debugger Graphical User Interface.
Continue selecting toolbar buttons.
Note
When running the debugger in graphical user interface (GUI) mode, you must explicitly start the simulation. For more information, seeStart a Simulation.
我n the MATLAB Command Window, enter either
我n both cases, the example modelvdp
loads into memory, starts the simulation, and stops the simulation at the first block in the model execution list.
The debugger opens and a debugger command prompt appears within the MATLAB command window. Continue entering debugger commands at this debugger prompt.