Hi guys,
Here is my problem: I plotted a figure and wanted to zoom in to see some details. However, the error showed up:
Error using error (line 4)
Not enough input arguments.
Error in view (line 29)
error(nargoutchk(0, 2, nargout,'struct'));
Error in resetplotview>localCreateViewInfo (line 181)
[az, el] = view(hAxes);
Error in resetplotview>localResetPlotView (line 70)
viewinfo = localCreateViewInfo(hAxes);
Error in resetplotview (line 48)
retval = localResetPlotView(hAxes(n),varargin{:});
Error in matlab.graphics.interaction.saveView (line 8)
Error in matlab.graphics.interaction.initializeView (line 5)
Error in zoom>localStoreLimits (line 678)
Error in zoom>localZoom (line 765)
Error in zoom>localStartDrag (line 739)
Error in zoom>localWindowButtonDownFcn (line 654)
Error in hgfeval (line 62)
feval(fcn{1},varargin{:},fcn{2:end});
Error in matlab.uitools.internal.uimode/modeWindowButtonDownFcn (line 115)
hgfeval(newButtonDownFcn,hFig,evd);
Error in matlab.uitools.internal.uimode/modeControl>localModeWindowButtonDownFcn (line
157)
hThis.modeWindowButtonDownFcn(hFig,evd,hThis,newValue);
Error while evaluating Figure WindowButtonDownFcn
Then I tried to plot some very simple function, the same error still exists. My MATLAB version is: R2015a, 64 bits.
I never had such problem before. Does anybody know what happened? Thanks ahead!

댓글 수: 3

Shruthi Gowda
Shruthi Gowda 2018년 7월 13일
hi .... I'm facing some error while zooming the plot can you help me out if u had the same error
Steven Lord
Steven Lord 2018년 7월 13일
Unless you're seeing the exact same error message, please create a new question using the Ask button near the top of the page. Include the full text of the error message (all the text displayed in red) in your new question.
If you are seeing the exact same error message try the solution I described.
Jianshe Feng
Jianshe Feng 2018년 9월 19일
Hi Shruthi, I agree with Steven Lord. The reason of my issue was I wrote an 'error.m' function by myself, which conflicted with the built-in one. You can search in your path. If you don't have a memory of creating an 'error.m' function by yourself, it's very possible that it's caused by some other issues.

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

 채택된 답변

Steven Lord
Steven Lord 2016년 7월 19일

0 개 추천

My guess is that you've written your own error.m that's taking precedence over the built-in error function. You can check this using the which function. If you have created your own error.m, rename or remove it.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

태그

질문:

2016년 7월 19일

댓글:

2018년 9월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by