MATLAB data cursor by default gives you 4 digits of precision. You can increase the precision of MATLAB’s data cursor (displaying more digits) by altering the “default_getDatatipText.m”.

Look inside “default_getDatatipText.m” for this:

`function [str] = local_Geometry_getDatatipText(hgObject,hDataCursor)`

% Determine datatip string that appears for a patch, surface, or line

` `

`DEFAULT_DIGITS = 4; % Display 4 digits of x,y position`

Now change DEFAULT_DIGITS to your liking.

Here’s how to find “default_getDatatipText.m”:

it’s in directory: <MATLAB_dir>/toolbox/matlab/graphics/@graphics/@datacursor

What is <MATLAB_dir>? Depends on your particular install and operating system.

Linux: might be /usr/local/MATLAB. To find it, type at the Terminal: `whereis matlab`

Windows: might be c:\program files\matlab or c:\program files (x86)\matlab

Example: for MATLAB 2012a Student on Linux, the relevant directory is:

/usr/local/MATLAB/R2012a_Student/toolbox/matlab/graphics/@graphics/@datacursor

RESTART MATLAB after making this change!