some internal error while zooming any plot

4 visualizaciones (últimos 30 días)
Shruthi Gowda
Shruthi Gowda el 18 de Jul. de 2018
Respondida: Simon Liljestrand el 13 de Feb. de 2019
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 comentarios
Shruthi Gowda
Shruthi Gowda el 18 de Jul. de 2018
yes ....I get the same error even when I try to edit the plot
Shruthi Gowda
Shruthi Gowda el 18 de Jul. de 2018
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

Iniciar sesión para comentar.

Respuestas (1)

Simon Liljestrand
Simon Liljestrand el 13 de Feb. de 2019
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.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by