data cursor errer

조회 수: 2 (최근 30일)
doyong
doyong 2011년 2월 17일
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
Andrew Newell
Andrew Newell 2011년 2월 18일
You should probably contact Matlab Support on this one and maybe fill out a bug report.

댓글을 달려면 로그인하십시오.

답변 (1개)

Richard
Richard 2011년 2월 18일
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)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by