%% Control Image Placement
% Place the image so that it lies between 5 and 8 on the _x_-axis and
% between 3 and 6 on the _y_-axis.

% Copyright 2015 The MathWorks, Inc.


x = [5 8];
y = [3 6];
C = [0 2 4 6; 8 10 12 14; 16 18 20 22];
imagesc(x,y,C)

%%
% Notice that the pixel corresponding to |C(1,1)| is centered over the
% point (5,3). The pixel corresponding to |C(3,4)| is centered over the
% point (8,6). |imagesc| positions and orients the rest of the image
% between those two points.