FUNCTION REFERENCE
image
Display an image from an array of colour data.
Display an image from an array of colour data.
Syntax
image(C)Syntax
image(x, y, C)Syntax
h = image(..., 'CDataMapping', 'scaled')C is m-by-n (one colour per element) or m-by-n-by-3 (truecolor RGB: 0 to 1 for double, 0 to 255 for uint8). m-by-n doubles index the colormap from 1; integer classes index it from 0. x and y give the centres of the first and last column and row. On axes that are not held, image shows the 2-D view with y = 1 at the top (axis ij). The handle has CData, XData, YData, CDataMapping and Visible.
Example
image([1 2; 3 4]); colormap(gray(4))Example
h = image(magic(8)); h.CDataMapping % 'direct'Differences from MATLAB: AlphaData and the low-level image() form are not supported; images are not saved in .fig files yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.