Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Chris
Chris le 13 Mar 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 commentaire
Jan
Jan le 13 Mar 2012
The best idea would be to avoid the "error in the filename".

Connectez-vous pour commenter.

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 13 Mar 2012
Try use block try...catch..end in inside loop for...end

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by