Grouping Figures with Subplots

조회 수: 10 (최근 30일)
MByk
MByk 2018년 7월 1일
댓글: MByk 2018년 7월 1일
I have 3 figures which has 5 subplots and a uitable. I want to group them together. I use the following code but in the first run first figure opens in a separate window. When I close all figures and rerun every figure becomes docked exactly as I wanted. How can I fix it? Thanks for the help.
for k = 1:3
figure('Name',['Values',k],'NumberTitle','off','units','normalized');
set(0,'DefaultFigureWindowStyle','docked');
for j = 1:4
...
subplot(2,3,j)
plot(...)
end
...
subplot(2,3,5)
plot(...)
end
figure('Name','Results','NumberTitle','off','units','normalized');
uitable(...);

채택된 답변

Walter Roberson
Walter Roberson 2018년 7월 1일
Move the
set(0,'DefaultFigureWindowStyle','docked');
to before the initial for loop.
  댓글 수: 1
MByk
MByk 2018년 7월 1일
Thank you very much.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by