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.

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by