how to subplot different size

조회 수: 209 (최근 30일)
mayy noensai
mayy noensai 2022년 1월 27일
댓글: Steven Lord 2022년 1월 27일
I want to compare results but the results are all the same, how do I differentiate?

답변 (1개)

Image Analyst
Image Analyst 2022년 1월 27일
Try
subplot(2, 2, k); % k is 1, 2, 3, or 4
g = gcf;
g.WindowState = 'maximized';
to make it a 2 by 2 array of images and maximized on your screen.
You might also look at the "truesize" function, or see my attached zoom demo.
  댓글 수: 1
Steven Lord
Steven Lord 2022년 1월 27일
Also keep in mind that the third input to subplot can be a vector as long as they refer to a rectangular set of subplots.
subplot(3, 3, 1:3, 'Color', 'r') % top row of the 3x3 grid
subplot(3, 3, [4 7], 'Color', 'b') % bottom 2/3 of the first column of the grid
ax = subplot(3, 3, [5 6 8 9]); % the rest of the grid
plot(ax, 1:10, 1:10)

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by