Infinite Loop in GUI Matlab
이전 댓글 표시
Hi all,
I'm writing a gui and wanted to know if there is any option to write an infinite loop (while 1) in the OpeningFcn and be able to run rest of the gui at the same time?
If you have other option I'll be happy to hear.
p.s. I don't want to use any buttons as a condition for that loop.
Thanks,
댓글 수: 5
Jan
2012년 7월 8일
When you block the OpeningFcn by while 1, Matlab does not reach the "rest of the GUI". This is the nature of an infinite loop.
What is your intention?
Yash
2012년 7월 8일
the GUI will be stuck at that point
Walter Roberson
2012년 7월 8일
Perhaps you are wanting to use waitfor() or uiwait()
Michael Adelman
2012년 7월 9일
Jan
2012년 7월 9일
@Michael: A new question requires a new thread. Adding a completely new question as comment to another one does not match the forum's intention. So please create a new thread, delete your comment, and add the first line as answer.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!