Wait for a condition to be met...
Afficher commentaires plus anciens
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 commentaires
KL
le 21 Oct 2017
How and when does BatchAbf.x get nIn elements?
Calvin Hobbes
le 21 Oct 2017
Modifié(e) : Calvin Hobbes
le 21 Oct 2017
Réponse acceptée
Plus de réponses (2)
Calvin Hobbes
le 21 Oct 2017
Modifié(e) : Calvin Hobbes
le 21 Oct 2017
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!