%% Change Direction of Coordinate System
% Create a checkerboard plot and change the direction of the coordinate system.
% 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

% Copyright 2015 The MathWorks, Inc.