how to open another gui from existing gui using push button ?

i have to gui, the main gui and the sub gui. I want to open the sub gui from main gui using push button ( guide ). How to make it ? thank you

 採用された回答

Stalin Samuel
Stalin Samuel 2016 年 6 月 17 日

2 投票

Refer the link here which has details with example code

1 件のコメント

ElizabethR
ElizabethR 2016 年 6 月 18 日
編集済み: ElizabethR 2016 年 6 月 18 日
hi Stalin Samuel, thank you so much for your example code. Your simple code is easy to learn and make me understand. God Bless :D

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

その他の回答 (1 件)

Shameer Parmar
Shameer Parmar 2016 年 6 月 17 日

2 投票

Lets consider you have 'ABC' is main GUI and 'XYZ' is sub GUI and 'OK' is the push button of GUI ABC
then in callback of OK push button of GUI ABC, simply put..
XYZ; % this command is to open the new GUI
close(ABC); % this command is to close the existing GUI

4 件のコメント

ElizabethR
ElizabethR 2016 年 6 月 18 日
hi Shameer Parmar, thank you so much, God bless :D
Linda Yakoubi
Linda Yakoubi 2018 年 4 月 20 日
編集済み: Linda Yakoubi 2018 年 4 月 20 日
didn'T work ... :/
Thiyaga Raj
Thiyaga Raj 2018 年 10 月 2 日
Nice, It Works
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis 2018 年 10 月 29 日
Will it run the .fig and .m files of XYZ by type XYZ; ?

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

カテゴリ

ヘルプ センター および 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