フィルターのクリア

How do I move from one figure to the other in a GUI using GUIDE (that is, from Figure1 to Figure2 and back to Figure1)?

1 回表示 (過去 30 日間)
Dear Forum Members,
I am creating a GUI (using GUIDE) having two figures namely, Figure1 and Figure2, respectively. I would like to know the code to use in order to move from Figure1 to Figure2 and back to Figure1.
Kindly do the needful.
I look forward to hearing from you.
Thanks.
Kind regards,
Gbolagade.
  2 件のコメント
Voss
Voss 2023 年 8 月 16 日
編集済み: Voss 2023 年 8 月 16 日
What do you mean by "to move" in this case? Do you mean to make Figure 1 the current figure (i.e., the window that has focus), then make Figure 2 the current figure, then make Figure 1 the current figure again?
Gbola
Gbola 2023 年 8 月 18 日
Dear Voss and other Community Members,
In this case, I mean to make Figure 1 the current figure (i.e., the window that has focus), then make Figure 2 the current figure, then make Figure 1 the current figure again.
Thanks.
Gbola.

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

回答 (1 件)

Voss
Voss 2023 年 8 月 18 日
Where hFig1 is the handle to your Figure1 and hFig2 is the handle to your Figure2
figure(hFig1) % make Figure1 current
figure(hFig2) % make Figure2 current
figure(hFig1) % make Figure1 current again
  1 件のコメント
Image Analyst
Image Analyst 2023 年 8 月 18 日
That's if Figure1 and Figure2 were both created by the one GUIDE program. I'm not exactly sure of the situation but maybe you could explain it for the case where he has two GUIDE programs and the main figure in one program has the "tag" figure1, and the tag for the other main figure has the tag figure2. So maybe you can explain how program 1 can activate program 2, and how program 2 can activate program 1. Or maybe @Gbola can clarify.
More info in the FAQ:

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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by