Desktop Tools and Development Environment |
Viewing Values as Datatips in the Editor/Debugger
In the Editor/Debugger, position the cursor to the left of a variable on that line. Its current value appears--this is called a datatip, which is like a tooltip for data. The datatip stays in view until you move the cursor. If you have trouble getting the datatip to appear, click in the line and then move the cursor next to the variable.
Datatips in the Example. Position the cursor over n
in line 9 of collatz
. The datatip shows that n
= 2, as expected.
Examining Values | Viewing Values in the Command Window |
© 1994-2005 The MathWorks, Inc.