MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
details, double-click the variable. The Variables Editor opens, displaying the content
for that variable. You also can use the openvar function to open a variable in the
Variables Editor.


  • View variable values in the MATLAB Editor.


Use your mouse to select the variable or equation. Right-click and select Evaluate
Selection from the context menu. The Command Window displays the value of the
variable or equation.

NoteYou cannot evaluate a selection while MATLAB is busy, for example, running a
file.


  • View variable values as a data tip in the MATLAB Editor.


22 Debugging MATLAB Code

Free download pdf