Need to get a figure

1 回表示 (過去 30 日間)
Dinouk Goonewardena
Dinouk Goonewardena 2020 年 8 月 7 日
コメント済み: Walter Roberson 2020 年 8 月 7 日
I have 2 figures, one is a GUI with a tag figure1 and another Figure 1 opened seperately which is graph, I tried using gcf but it only recongizes the GUI (figure1). How do I get tthe other graph (Figure 1)?

回答 (1 件)

Image Analyst
Image Analyst 2020 年 8 月 7 日
hFig1 = figure; % Create first figure.
hFig2 = figure; % Create second figure.
figure(hFig1); % Switch to first figure.
% Do stuff - plotting, etc.
figure(hFig2); % Switch to second figure.
% Do stuff - plotting, etc.
  3 件のコメント
Sudheer Bhimireddy
Sudheer Bhimireddy 2020 年 8 月 7 日
Try creating a figure handle inside the SavePlot_PP() and return it.
Walter Roberson
Walter Roberson 2020 年 8 月 7 日

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

カテゴリ

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