Wait for a condition to be met...
이전 댓글 표시
Dear community, apologies for asking a simple and multiple-times-asked question...
[BatchAbf.x,~]=ginput(nIn);
% some lines are executed...
waitfor(numel(BatchAbf.x)=nIn);
% do not execute from here down until above condition is met
I know i can get away with pause and press enter, but this solution is more suited.
Any help greatly appreciated
댓글 수: 2
KL
2017년 10월 21일
How and when does BatchAbf.x get nIn elements?
Calvin Hobbes
2017년 10월 21일
편집: Calvin Hobbes
2017년 10월 21일
채택된 답변
추가 답변 (2개)
Calvin Hobbes
2017년 10월 21일
편집: Calvin Hobbes
2017년 10월 21일
카테고리
도움말 센터 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!