For loop stops on error - how can I force to continue

1 visualización (últimos 30 días)
Chris
Chris el 13 de Mzo. de 2012
Sorry I am new to Matlab and am sure this is a basic question but I have a for loop that imports files. When it comes to an error in the filename it stops execution. Is there a way to force the script to continue beyond the error?
  1 comentario
Jan
Jan el 13 de Mzo. de 2012
The best idea would be to avoid the "error in the filename".

Iniciar sesión para comentar.

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 13 de Mzo. de 2012
Try use block try...catch..end in inside loop for...end

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by