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
MATLAB bug or driver problems
1 view (last 30 days)
Show older comments
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
Accepted Answer
More Answers (1)
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.
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!