colormap
dif=abs(a-b);
imshow(dif,[]);
colormap(jet);
colorbar;
多个legend
figure;
Plota=plot(a);hold on;
Plotb=plot(b);hold on;
Plotc=plot(c);hold on;
PlotA=plot(A);hold on;
PlotB=plot(B);hold on;
PlotC=plot(C);hold on;
legend(‘a’,’b’,’c’) ;
newAxis=axes('position',get(gca,'position'),... 'visible','off');
legend(newAxis,[PlotAPlotBPlotC],’A’,’B’,’C’) ;