Waitbar reappear after openning a GUI

In guiframe_OpeningFcn of my GUI, a function is called to process some data. It takes a little while so I added a simple waitbar in the function. The problem is that the waitbar reapears after the GUI is open. I have tried delete() or close(), but none of them works, the waitbar is closed when the function is finished, but it keeps popping up again after the GUI is open. Is there a way to solve this problem?

2 Comments

Share your code for the OpeningFcn so we can see.
It's possible that you saved the waitbar into the .fig file (you can save multiple figures into the same .fig file, and they all reopen at load time).
Thanks for the hint. Probelem solved, it turns out in the openningfcn I tried to load the data saved by that function I called and the data contained the waitbar figure, so the waitbar popped up again.

Sign in to comment.

Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Products

Tags

Asked:

on 17 Mar 2018

Commented:

on 18 Mar 2018

Community Treasure Hunt

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

Start Hunting!