imagesc
Display image with scaled colors
Syntax
描述
imagesc(
displays the data in arrayC
)C
作为一个image that uses the full range of colors in the colormap. Each element ofC
specifies the color for one pixel of the image. The resulting image is anm
-经过-n
grid of pixels wherem
is the number of rows andn
is the number of columns inC
。这row and column indices of the elements determine the centers of the corresponding pixels.
imagesc('cdata',
将图像添加到当前轴上,而无需更换现有图。该语法是低级版本的C
)imagesc(C)
。有关更多信息,请参阅High-Level Versus Low-Level Version。
imagesc(___,
使用一个或多个名称值对参数指定图像属性。您可以在上一个语法中的任何输入参数组合之后指定名称值对参数。有关图像属性和描述的列表,请参见图像属性。Name,Value
)
imagesc(___,
specifies the data values that map to the first and last elements of the colormap. Specify攀登
)攀登
as a two-element vector of the form[cmin cmax]
,值小于或等于CMIN
map to the first color in the colormap and values greater than or equal tocmax
map to the last color in the colormap. Specify攀登
after name-value pair arguments.
imagesc(
creates the image in the axes specified byax
,___)ax
instead of in the current axes (GCA
)。将轴指定为第一个输入参数。