A=rand(604,584);
B=rand(604,584)+2;
x=1:584;
y=1:604;
figure;
t = tiledlayout(1,2,'TileSpacing','none');
ax1 = nexttile;
mymap=pcolor(x,y,A);mymap.EdgeAlpha=0;
colormap(ax1,jet);
colorbar(ax1);
title(ax1,'Image 1');
ax2 = nexttile;
mymap=pcolor(x,y,B);mymap.EdgeAlpha=0;
colormap(ax2,parula);
colorbar(ax2);
title(ax1,'Image 2');
% Set the colormaps for each subplot explicitly
colormap(ax1,jet);
colormap(ax2,parula);
t.Padding = 'none';