针对matlab2017渲染出的彩色图是黑白的问题。
t=labels; t(tstSet(:,end-1))=Relabels; t=reshape(t,145,145); t=t'; figure imshow(t,[],'border','tight','InitialMagnification','fit'); set (gcf,'Position',[600,100,350,350]); colormap('default'); axis image; axis off;
在图片上选择 编辑——颜色图——工具——标准颜色图——jet.搞定!