some internal error while zooming any plot

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 Comments

Very strange. This part of the message tells exactly, where the problem occurs, but not what the problem is. Is this really the complete message?
yes ....I get the same error even when I try to edit the plot
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

Sign in to comment.

Answers (1)

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.

Categories

Asked:

on 18 Jul 2018

Answered:

on 13 Feb 2019

Community Treasure Hunt

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

Start Hunting!