9-7.m

来自「matlab6.5图形图像处理源程序 matlab6.5图形图像处理源程序」· M 代码 · 共 13 行

M
13
字号
[X1,map1]=imread('forest.tif');
[X2,map2]=imread('trees.tif');
%分别读入两个索引图像
subplot(1,2,1), imshow(X1,map1)
subplot(1,2,2), imshow(X2,map2)
%用imshow函数显示这两个图像

[X1,map1]=imread('forest.tif');
[X2,map2]=imread('trees.tif');
subplot(1,2,1), subimage(X1,map1)
subplot(1,2,2), subimage(X2,map2)
%用subimage函数显示这两个图像

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?