I want to use the imshow function and set function (both of them) with the MATLAB subplot function to display multiple images in a single figure window. But because of the set function in the following code, it isn't possible. How to solve it?
if str2num(N1(1:end-4)) == str2num(N2(1:end-4))
subplot(1,2,1);
imshow(volume_image(:, :, i), []);
green = cat(3, zeros(size(volume_image(:, :, i))), ones(size(volume_image(:, :, i))), zeros(size(volume_image(:, :, i))));
subplot(1,2,2);
h = imshow(green);
set(h, 'AlphaData', double(Rad_Img));
end
2 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/439251-how-to-display-images-in-the-same-figure#comment_659243
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/439251-how-to-display-images-in-the-same-figure#comment_659243
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/439251-how-to-display-images-in-the-same-figure#comment_659291
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/439251-how-to-display-images-in-the-same-figure#comment_659291
Sign in to comment.