How to halt program until file input?
Mostrar comentarios más antiguos
Hi, I am making an image processing program and want to know if there is a way to halt the program and make it wait for a image to be created before it is read. To put it into context,
imagefiles = dir('*.jpg');
nfiles = length(imagefiles);
for a = 1:200
filename = ['image-' num2str(a,'%02d') '.jpg'];
image = imread(filename);
I understand pause(n) might work but because the inputted images take different times to be snapped, I would like to make it dependent on when the file appears.
Any suggestions would be great!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Convert Image Type 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!