[X,map] = imread('testpic01.bmp');gmap = rgb2gray(map);figure, imshow(X,map), figure, imshow(X,gmap);错误使用 imread输出参数太多。
http://www.ilovematlab.cn/thread-456644-1-1.html