Loop in GUI to open and close the same GUI window
3 views (last 30 days)
Hello everyone !
I have a GUI window that I want to close and reopen x-times. In this window I enter parameters and I have to enter them x-times (x defined by the user as an input in an other GUI window).
So, for example I have my window with an edit text box, and a pushbutton. Every time I click on the pushbutton, I want the window to close and re-open.
Once the window has been closed and opened x-times, it opens a different GUI window.
For now, here is my code:
for i = 1:(x- 1)
if (i == (x))
But it doesn't work. the loop increases 'i', but it didn't open the window at each increase, it opens it just one time, quickly close it, and goes directly to nextwindow.
What is the problem ?
Thanks for your help !