www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ChangeDirectionOfCoordinateSystemExample.m
%% Change Direction of Coordinate System % Create a checkerboard plot and change the direction of the coordinate % system. % Copyright 2015 The MathWorks, Inc. %% % First, create the plot using the |summer| colormap. By default, the _x_ % values increase from left to right and the _y_ values increase from % bottom to top. C = eye(10); pcolor(C) colormap summer %% % Reverse the coordinate system so that the _y_ values increase from % top to bottom. axis ij