How to Run an App Again without the Need to Close It Manually?

Imagine I have a simple app made in GUIDE which loads a file and does some analyses. When I want to load another file, I first have to close the figure manually to be sure that the app runs from the beginning again. If I forget to close the figure and load a file, it doesn’t work properly.
How can I programmatically run the app again without the need of manually close the current figure?

1 Comment

Generally this would be up to you to ensure you reset things on loading a file.
e.g. have an reset( ) function that will reset the state of your GUI's underlying data.

Answers (0)

This question is closed.

Tags

Asked:

on 16 Mar 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!