请教,matlab function---image

来源: 2008-01-22 18:41:57 [旧帖] [给我悄悄话] 本文已被阅读:

A=[1,1
2,10];
image (A);
caxis ([0,10]);
colorbar;

请教,why caxis does not work here (it works if I use pcolor, or mesh, but not for image only)? if I would like to define the max and min of the colorbar here, what matlab function should I use?

Thanks.