等待GUI完成-MATLAB [英] Wait for GUI to finish - MATLAB
本文介绍了等待GUI完成-MATLAB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行一个程序,最后我运行了一个GUI,该GUI将响应写入Excel文件.在程序的继续中,我尝试读取这些文件.在我看来,MATLAB会在GUI创建文件之前尝试读取.
I am running a program, in the end I ran a GUI that writes responses to an Excel file. In the contium of the program I try to read these files. It seem to me that MATLAB tries to read before the files are created by the GUI.
如何告诉程序等到GUI完成(按下按钮)?
How can I tell the program to wait until the GUI is finished (button is pressed)?
类似的东西:
>>Run_Gui()
>>WaitSomeh ow()
>>xlsread(...)
推荐答案
如果要等到图形关闭,请尝试使用
If you want to wait until a figure is closed, try using
f = figure();
uiwait(f);
按照@stefangretar的正确建议,您可以使用
As @stefangretar suggested correctly, you can use
uiresume(f)
如果您不想破坏窗户.
这篇关于等待GUI完成-MATLAB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文