I plot a montage of images onto a UIPanel and it worked fine when the images were tiffs. My images are now jpgs and I notice that the coloured images now appear black and white. I can't see why this would be the case. Here is my code
This is in a loop for all images.
hp = handles.uipanelM; h=subplot('Position',positionVector,'Parent',hp); %to enable deleting use handles
colormap (jet); % update handle array
hSubplots = [hSubplots ; h]; %Concatenate
axis off; hold off; %Create thumbnail sized image
IM1=imresize(IM, 0.05); allImgs{y1,x1} = IM1 ; imagesc(Image,[mlo mhi]) colormap (jet); axis off; set(gca,'ytick',[]); set(gca,'xtick',[]); drawnow;
Best Answer