waitfordata

버전 1.0.0.0 (2.17 KB) 작성자: Peter Li
Block Matlab while specified fig is open, then grab APPDATA when fig is closing.
다운로드 수: 207
업데이트 날짜: 2012/9/13

라이선스 보기

Imagine you have a GUI that saves some data you want in an APPDATA field named 'points'. You can get that field using: getappdata(f, 'points'), but this gives you no guarantee that the user is actually done with the GUI; you don't know if POINTS is in a finished state yet.

If you instead run: data = waitfordata(f, {'points'}); points = data{1}, you now block execution until the GUI is closed, but grab the points data from the GUI just as it is closing. You have a guarantee that points will be set with the data only after the user finished with the GUI.

인용 양식

Peter Li (2024). waitfordata (https://www.mathworks.com/matlabcentral/fileexchange/38160-waitfordata), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 View and Analyze Simulation Results에 대해 자세히 알아보기
태그 태그 추가
gui

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0