Why it does not display the two images in the same window using the subplot function?

1 次查看(过去 30 天)
This is the code:
>> a = imread('peppers.png');
>> b = imread('moon.tif');
>> subplot(1,2,1), imshow(a)
>> subplot(1,2,2), imshow(b)
Why first show the first figure and then the second but in two different screens and not in the same?
  3 个评论

请先登录,再进行评论。

回答(1 个)

Matt J
Matt J 2018-3-13
编辑:Matt J 2018-3-13
The only reason I can think of is that maybe you have some MATLAB GUI application running asynchronously in the background, and which changes the current MATLAB figure behind your back.

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by