Pausing a for loop execution
Mostrar comentarios más antiguos
I have the following section of code:
%%%%%%Loop through signals
for idx = 1:length(missing_sigs)
mis_sig_no_tok = strtok(missing_sigs{idx},'>');
mis_sig_no_tok = strtok(mis_sig_no_tok,'<');
ResolveMissingSigs(mis_sig_no_tok);
end
ResolveMissingSigs is a function that makes a gui appear with options for the user to choose how they want to deal with the missing signal. The problem is that the current code calls the gui function but the loop causes only the last signal to be seen. I want the loop to pause every time ResolveMissingSigs is called and resume execution to the next signal after the user has made their choice.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!