Desktop Tools and Development Environment Previous page   Next Page

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.

Image of collatz.m file in the Editor/Debugger, showing datatip. The cursor is positioned at line 9, sequence = n, at the n. A datatip shows the value of n, n: 1 x 1 double = 2.


Previous page  Examining Values Viewing Values in the Command Window Next page

© 1994-2005 The MathWorks, Inc.