set(handles.text4,visible,on) pause(1) X,map=imread(C:UsersAdministratorDesktopmatlabimage1.jpg);%map是色谱,map每一行分别代表R、G、B,涵盖了图像中出现的所有颜色组合。%X是像素颜色值,数据矩阵X的值指向map的某一行。X1=X;map1=map;subplot(2,2,1); image(X1);colormap(map1); %指当前显示的figure窗口色图按照指定map1进行搭配,用MAP矩阵映射当前图形的色图title(原始图像1)axis squareX,map=imread(C:UsersAdministratorDesktopmatlabimage2.jpg);X2=X;map2=map;subplot(2,2,2);image(X2);colormap(map2);title(原始图像2);axis square if ndims