Data Cursor Error

7 views (last 30 days)
Samuel Hamner
Samuel Hamner on 15 Feb 2012
Edited: SAM on 13 Oct 2013
I am using Student Version of R2009a
It seems like spontaneously, I am no longer to use the data cursor tool in my MATLAB plots.
As a simple test case if I just type:
EDU>> plot(0:0.01:100, 0:0.01:100);
Then if I select the data cursor tool in the plot window I get the following error message:
Mex file entry point is missing. Please check the (case-sensitive)
spelling of mexFunction (for C MEX-files), or the (case-insensitive)
spelling of MEXFUNCTION (for FORTRAN MEX-files).
Warning: an error occurred while parsing class graphics.datatip:
Invalid MEX-file 'C:\Windows\system32\version.dll': .
> In datacursormode>localUseButtonDownFcnCallback at 232
In hgfeval at 57
In uitools.uimode.modeWindowButtonDownFcn at 65
In uitools.uimode.modeControl>localModeWindowButtonDownFcn at 140
??? Invalid event name.
Error in ==> graphics.datatip.updatestring at 71
hEvent = handle.EventData(hThis,'UpdateCursor');
Error in ==> graphics.datatip.updatePositionAndString at 19
updatestring(hThis);
Error in ==> graphics.datatip.update at 25
updatePositionAndString(hThis,hNewDataCursor);
Error in ==> graphics.datatip.datatip at 85
update(hThis);
Error in ==> graphics.datacursormanager.createDatatip at 22
hDatatip = graphics.datatip(hTarget,...
Error in ==> datacursormode>localWindowButtonDownFcnDatatip at 764
hDatatip = hTool.createDatatip(hTarget);
Error in ==> datacursormode>localWindowButtonDownFcn at 610
localWindowButtonDownFcnDatatip(fig,hTool,hTarget,doNewDatatip);
Error in ==> hgfeval at 63
feval(fcn{1},varargin{:},fcn{2:end});
Error in ==> uitools.uimode.modeWindowButtonDownFcn at 81
hgfeval(newButtonDownFcn,hFig,evd);
Error in ==> uitools.uimode.modeControl>localModeWindowButtonDownFcn at 140
hThis.modeWindowButtonDownFcn(hFig,evd,hThis,newValue);
??? Error while evaluating figure WindowButtonDownFcn

Answers (3)

Sean de Wolski
Sean de Wolski on 15 Feb 2012
Does this happen for every figure? If you:
close all force
and then run:
peaks
does it happen?
  1 Comment
Samuel Hamner
Samuel Hamner on 15 Feb 2012
Yes it happens. But I realized this is a bigger issue than just the data cursor. I even get it when I type 'ver':
EDU>> ver
-------------------------------------------------------------------------------------
Mex file entry point is missing. Please check the (case-sensitive)
spelling of mexFunction (for C MEX-files), or the (case-insensitive)
spelling of MEXFUNCTION (for FORTRAN MEX-files).
??? Invalid MEX-file 'C:\Windows\system32\version.dll': .
Error in ==> ver>LocDisplayMatlabInformation at 253
disp([xlate('MATLAB Version '),version])
Error in ==> ver at 74
LocDisplayMatlabInformation
The only thing I can think of is that it seem to have started happening after a Windows Update.

Sign in to comment.


Samuel Hamner
Samuel Hamner on 15 Feb 2012
Ok. I fixed the MEXFUNCTION issue, but I am still having problems with the data cursor. If I call: close all force
and then call
peaks
and then try to use the data cursor I get this error now:
??? Invalid event name.
Error in ==> graphics.datatip.updatestring at 71 hEvent = handle.EventData(hThis,'UpdateCursor');
Error in ==> graphics.datatip.updatePositionAndString at 19 updatestring(hThis);
Error in ==> graphics.datatip.update at 25 updatePositionAndString(hThis,hNewDataCursor);
Error in ==> graphics.datatip.datatip at 85 update(hThis);
Error in ==> graphics.datacursormanager.createDatatip at 22 hDatatip = graphics.datatip(hTarget,...
Error in ==> datacursormode>localWindowButtonDownFcnDatatip at 764 hDatatip = hTool.createDatatip(hTarget);
Error in ==> datacursormode>localWindowButtonDownFcn at 610 localWindowButtonDownFcnDatatip(fig,hTool,hTarget,doNewDatatip);
Error in ==> hgfeval at 63 feval(fcn{1},varargin{:},fcn{2:end});
Error in ==> uitools.uimode.modeWindowButtonDownFcn at 81 hgfeval(newButtonDownFcn,hFig,evd);
Error in ==> uitools.uimode.modeControl>localModeWindowButtonDownFcn at 140 hThis.modeWindowButtonDownFcn(hFig,evd,hThis,newValue);
??? Error while evaluating figure WindowButtonDownFcn

Kristian
Kristian on 14 Sep 2013
Has anyone answered this question??? I have the same issue, and the only result i've been able to change is that when i change the current directory to where i installed matlab, the "ver" function works.
yet, after i successfully get "ver" to work, i try to use the cursor in the plot, and nothing happens.
please excuse any informality i have in explaining things, i typically may not know the proper name or term for something. in addition, if this question's already been solved, i didn't find it through google, so please point me to that if it exists.
  2 Comments
Kristian
Kristian on 14 Sep 2013
UPDATE: i did two things and for the moment, MATLAB seems to be back to normal. 1: updated java (which probably has no effect, but may as well list it.). 2: changed the current directory to
"C:\Program Files (x86)\MATLAB\R2009a Student"
so... i'm guessing this is some kind of simple error where matlab can't find files it already has? in addition, this also means investigating why my normal shortcut to open matlab has a default current dir of "C:\Windows\System32".
hope this helps anyone in the future who can't figure it out.
Sean de Wolski
Sean de Wolski on 16 Sep 2013
@Kristian, you can change the default location by right clicking the icon and entering a new "Start in" directory.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!