data cursor errer

2 visualizzazioni (ultimi 30 giorni)
doyong
doyong il 17 Feb 2011
As I get my image shown and put the data cursor mode on and when I try to access the data point on the image, I get this kind of error.
??? Attempt to call constructor line with incorrect letter case.
Error in ==> graphics.datatip.datatip>localCreateNewMarker at 152 hMarker = line(lprops);
Error in ==> graphics.datatip.datatip at 43 localCreateNewMarker(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 84 hgfeval(newButtonDownFcn,hFig,evd);
Error in ==> uitools.uimode.modeControl>localModeWindowButtonDownFcn at 140 hThis.modeWindowButtonDownFcn(hFig,evd,hThis,newValue);
??? Error while evaluating figure WindowButtonDownFcn
anyone out there who had similar error messages like me?
same excat mfile worked a month ago with out a problem including using data cursor but now I have this problem.
thanx for all the help.
to add I am using 2009b
  1 Commento
Andrew Newell
Andrew Newell il 18 Feb 2011
You should probably contact Matlab Support on this one and maybe fill out a bug report.

Accedi per commentare.

Risposte (1)

Richard
Richard il 18 Feb 2011
This error is caused by having a script called "line" on the MATLAB path and this is "shadowing" the built-in MATLAB line function, preventing the expected built-in from being called. You can use the which command to find out where this script is, for example:
which line
C:\dev\sb\matlab\line.m
The above indicates that I have created C:\dev\sb\matlab\line.m and this is shadowing the built-in function that the datatip is trying to use. Delete or rename the script file you have created, or remove it from the MATLAB path.
(The wording of the error is misleading in this case: I'll report that to the right person)

Categorie

Scopri di più su Performance and Memory in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by