MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

TipIt is a good practice to avoid modifying a file while MATLAB is paused. Changes that
are made while MATLAB is paused do not run until after MATLAB finished running the
code and the code is rerun.


To continue running the code, click the Continue button. MATLAB continues running


the file until it reaches the end of the file or a breakpoint. You also can click the button
to the left of the line of code you want to continue running to.


To continue running the code line-by-line, on the Live Editor tab, click Step. MATLAB
executes the current line at which it is paused and the pauses at the next line.


View Variable Value While Debugging


To view the value of a variable while MATLAB is paused, hover the mouse pointer over the
variable. The current value of the variable appears in a data tip. The data tip stays in view


until you move the pointer. To disable data tips, go to the View tab and press the
Datatips button.


Debug Code in the Live Editor
Free download pdf