Wait for a condition to be met...
Show older comments
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 Comments
KL
on 21 Oct 2017
How and when does BatchAbf.x get nIn elements?
Calvin Hobbes
on 21 Oct 2017
Edited: Calvin Hobbes
on 21 Oct 2017
Accepted Answer
More Answers (2)
Calvin Hobbes
on 21 Oct 2017
Edited: Calvin Hobbes
on 21 Oct 2017
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!