From: forkandwait w on
Hi all,

I would like to plot a matrix as a bunch of colors representing the z values, but I want the plot to give a well defined square, rather than the contours that are the reason countourf has its name.

Example here: http://hansgilde.files.wordpress.com/2009/10/stock_heat.png

Can anyone give me a hint on how to do this matlab, preferably with a standard function?

Tx!
From: Andrew Stevens on
"forkandwait w" <forkandwait(a)gmail.com> wrote in message <hmpf21$mk0$1(a)fred.mathworks.com>...
> Hi all,
>
> I would like to plot a matrix as a bunch of colors representing the z values, but I want the plot to give a well defined square, rather than the contours that are the reason countourf has its name.
>
> Example here: http://hansgilde.files.wordpress.com/2009/10/stock_heat.png
>
> Can anyone give me a hint on how to do this matlab, preferably with a standard function?
>
> Tx!

help:

surf
pcolor
imagesc

should get you started.
-Andrew
From: forkandwait w on
> pcolor

This looks like it will work, once I figure out how to rejigger the axis labels and such.

Thanks!
W