MATLAB Answers

Paolo
0

MATLAB bug or driver problems

Asked by Paolo
on 6 Jan 2014
Latest activity Answered by Paolo
on 6 Jan 2014
Hello, with MATLAB 2012a/2013a x64 on Winows 7/8.1 x64 I have a problem when I am tring to plot something. My laptop is a DELL XPS 17 L702x (no 3D monitor).
If I plot a simple graph like this
x = 1:10;
figure;
plot(x);
and I am trying to do a zoom in/out this is the error:
Error using view
Too many output arguments.
Error in
resetplotview>localCreateViewInfo
(line 175)
[az, el] = view(hAxes);
Error in
resetplotview>localResetPlotView (line
63)
viewinfo =
localCreateViewInfo(hAxes);
Error in resetplotview (line 45)
retval =
localResetPlotView(hAxes(n),varargin{:});
Error in C:\Program
Files\MATLAB\R2012a\toolbox\matlab\graph2d\zoom.p>localZoom
(line 880)
Error in C:\Program
Files\MATLAB\R2012a\toolbox\matlab\graph2d\zoom.p>localStartDrag
(line 855)
Error in C:\Program
Files\MATLAB\R2012a\toolbox\matlab\graph2d\zoom.p>localWindowButtonDownFcn
(line 781)
Error in hgfeval (line 63)
feval(fcn{1},varargin{:},fcn{2:end});
Error in
uitools.uimode/modeWindowButtonDownFcn
(line 108)
hgfeval(newButtonDownFcn,hFig,evd);
Error in
uitools.uimode/modeControl>localModeWindowButtonDownFcn
(line 151)
hThis.modeWindowButtonDownFcn(hFig,evd,hThis,newValue);
Error while evaluating figure WindowButtonDownFcn
And I have similar error during plotting time with bar command:
x = 1:10;
figure;
bar(x);
Error using view
Too many input arguments.
Error in specgraph.barseries/refresh
(line 128)
view(cax,2);
Error in
graph2d.series/schema>LdoDirtyAction
(line 108)
refresh(h);
Warning: Error occurred while
evaluating listener callback.
> In bar at 122
Is there a way to fix this? Thanks for any helps

  0 Comments

Sign in to comment.

2 Answers

Answer by Paolo
on 6 Jan 2014
 Accepted Answer

Ooooops I discovered what happened, I have a conflict with MATLAB script names (I created a script called view.m that has the same name of the one in the toolbox). Sorry to bother you xD

  0 Comments

Sign in to comment.


Answer by Walter Roberson
on 6 Jan 2014

See the documentation on axis properties. The obsolete property "view" is described as
The axes camera properties now controls the functionality provided by the View property — CameraPosition, CameraTarget, CameraUpVector, and CameraViewAngle. See the view command.
so instead of using view(), you can get() those properties.

  1 Comment

Thanks for the details but I am not using directlly the view command, I simply clicked on zoom button (in the figure) and the error occoured (for any plots). With bar command I have directlly this error during the plotting time, this never happend to me before... I do not know what happened to my MATLAB

Sign in to comment.