Graphics Previous page   Next Page

XData and YData

The XData and YData properties control the coordinate system of the image. For an m-by-n image, the default XData is [1 n] and the default YData is [1 m]. These settings imply the following:

For example, the statements

produce the following picture.

The XData and YData properties of the resulting image object have the default values shown below.

However, you can override the default settings to specify your own coordinate system. For example, the statements

produce the following picture.


Previous page  Image CDataMapping EraseMode Next page

© 1994-2005 The MathWorks, Inc.