How do i reset gui to initial state while runtime?

Hello EveryOne I am working on a project in matlab, i want to place a reset button and make the project go back to the initial state when it ran first time plz help ? i have so many objects in my matlab gui with lots of visible on/off properties How can i make them to their initial conditions??

回答 (1 件)

Geoff Hayes
Geoff Hayes 2016 年 4 月 24 日

0 投票

Farhan - in the callback for your reset button, you would reset the state of each control to whatever it's default or initial state should be. I think that you are hoping for an easier solution to restore the state, but I think that you will need to write the code to do that for each of your controls.

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

質問済み:

2016 年 4 月 23 日

回答済み:

2016 年 4 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by