MATLAB 2018b App Designer

6 ビュー (過去 30 日間)
Wael Wanis
Wael Wanis 2019 年 8 月 11 日
コメント済み: Wael Wanis 2019 年 8 月 14 日
Hello everyone,
I want to design a GUI that asks the user to insert some inputs then click on a pushbutton to go to the next page where the user is asked to insert some parameters then click on a puch button to run a code.
I read that I can do that by creating multiple GUIs, where clicking on the push button in GUI1 opens GUI2 and so on, however, that's not what i want, i want in the same GUI, when the button is pushed, the contents of the GUI change to the new contents, can this be done?
If not, then I want to ask how can I close GUI1 after clicking the button and GUI2 opens?
the command close(GUI1) doesn't work with me. I am using MATLAB 2018b.
Thank you

採用された回答

Navya Seelam
Navya Seelam 2019 年 8 月 14 日
Hi,
To change the contents of GUI on a click of pushbutton, the visibility of existing components can be turned off and the visibility of new components that appear on click of pushbutton can be turned on. For example,
app.Slider.Visible='off';
app.UITable.Visible='on';
To close GUI1 after clicking the pushbutton use the following command in the callback of pushbutton
app.delete
  1 件のコメント
Wael Wanis
Wael Wanis 2019 年 8 月 14 日
Thank you so much.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by