Grouping Figures with Subplots

5 ビュー (過去 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 Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by