Answers for "matlab show multiple images"

0

matlab show multiple images

%Display Multiple Images in Separate Figure Windows:
imshow(I(:,:,:,1))
figure, imshow(I(:,:,:,2))
figure, imshow(I(:,:,:,3))

%View Image Sequence as Montage
onion = imread('onion.png');
onionArray = repmat(onion, [ 1 1 1 4 ]);
montage(onionArray);

%Display Images Individually in the Same Figure
[X1,map1]=imread('forest.tif');
[X2,map2]=imread('trees.tif');
subplot(1,2,1), imshow(X1,map1)
subplot(1,2,2), imshow(X2,map2)
Posted by: Guest on October-17-2021

Browse Popular Code Answers by Language