imagesc

Display scaled image object

# Calling Sequence

    imagesc(C)

    imagesc(C,clims)

    imagesc(x,y,C)

    imagesc(x,y,C,clims)

    imagesc(x,y,'PropertyName',PropertyValue)

    hdl = imagesc(...)

## Parameter

x

- vector

y

- vector

C

- m by n matrix

clims

- 2-vector

hdl

- Handle of the Matplot entity

## Description

image creates a scaled image object by considering each element of the C matrix. The values are scaled and are mapped to the current figure colormap. The vector clims allows to define the minimum and maximum values associated to the first and last color of the colormap.

When the x and y vectors are given, only the first and last values of these vectors are used and define the range of each variable. By default, the 'YDir' property of parent axis is set to 'Reverse'.

## Example

    load(PLOTLIB+'clown.dat')
    drawlater
    subplot(1,2,1);
    imagesc(X);
    axis tight
    subplot(1,2,2);
    imagesc(X,[0.4 1]);
    axis tight
    drawnow

## Screenshot

## See Also

- image
- pcolor
- colormap
- caxis

## Authors

- Stéphane Mottelet