open/create a figure behind another

1 回表示 (過去 30 日間)
Vincent I
Vincent I 2013 年 6 月 19 日
Hi, just as the title says, would it be possible? I know I can create/open a figure then focus/select the main figure, but thats not what I want to do.
Thank you

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 6 月 19 日
%First figure
figure(1);
set(1,'units','normalized','position',[0.1 0.2 0.6 0.4]);
plot(rand(1,10));
%Open the seocnd figure;
figure(2);
set(2,'units',get(1,'units'),'position',get(1,'position'));
surf(peaks);
%Give focus back to the first
figure(1);
  4 件のコメント
Vincent I
Vincent I 2013 年 6 月 19 日
ok that might work... I think I can do that, I'll give it a try.
Vincent I
Vincent I 2013 年 6 月 19 日
ok it worked. Thank you
figure2('Visible','off')
figure(figure1)
figure2('Visible','on')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by