some internal error while zooming any plot

4 次查看(过去 30 天)
Hi, I'm encountering the below error when I try to zoom any plots. can anyone tell how to overcome this error . I'm using matlab R2016a
Error in ispref (line 45)
exists = logical(exists);
Error in addpref (line 28)
if any(ispref(group, pref))
Error in getpref (line 99)
addpref(group, prefCell{i}, defaultCell{i});
Error in zoom>locGetMode (line 507)
hMode.ModeStateData.DoRightClick = getpref('MATLABZoom','RightClick','off');
Error in zoom (line 247)
hMode = locGetMode(hFigure);
Error in putdowntext (line 145)
zoom(fig,'inmode');
Error while evaluating ToggleTool ClickedCallbackerr
  3 个评论
Shruthi Gowda
Shruthi Gowda 2018-7-18
yes ....I get the same error even when I try to edit the plot
Shruthi Gowda
Shruthi Gowda 2018-7-18
I'm getting this below error also
Reference to non-existent field 'Constraint'.
Error in zoom>localStartZoom (line 552)
zoom_constraint = hMode.ModeStateData.Constraint;
Error in zoom>@(~,~)localStartZoom(hMode) (line 502)
set(hMode,'ModeStartFcn',@(~,~)localStartZoom(hMode));
Error in hgfeval (line 62)
feval(fcn{1},varargin{:},fcn{2:end});
Error in matlab.uitools.internal.uimode/modeControl (line 16)
hgfeval(hThis.ModeStartFcn);
Error in matlab.uitools.internal.uimode/set.Enable (line 173)
obj.Enable = modeControl(obj,value);
Error in matlab.uitools.internal.uimodemanager>localSetMode (line 185)
set(newMode,'Enable','on');
Error in matlab.uitools.internal.uimodemanager/set.CurrentMode (line 111)
obj.CurrentMode = localSetMode(obj,value);
Error in activateuimode (line 27)
set(hManager,'CurrentMode',hMode);
Error in zoom>localSetZoomState (line 439)
activateuimode(hFig,'Exploration.Zoom');
Error in zoom (line 373)
localSetZoomState(hFigure,change_ui);
Error in putdowntext (line 145)
zoom(fig,'inmode');
Error while evaluating ToggleTool ClickedCallback

请先登录,再进行评论。

回答(1 个)

Simon Liljestrand
Simon Liljestrand 2019-2-13
I had more or less the same error message, and in my case it turned out to be due to how I had named files in my directory. More specifically, I had an .m file called "zoom.m" in the directory, and that filename was probably causing conflict with internal functions.

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by