continue for-loop despite matlab error
Ältere Kommentare anzeigen
I want to process a number of images for data analysis. If one of the images causes a matlab error, I want the program to display a message but to continue with the analysis of the following images. So it would need to continue with the next iteration of a for loop. Is this possible and how would I do this?
Thanks, Christine
Akzeptierte Antwort
Weitere Antworten (1)
Christine
am 19 Apr. 2012
1 Kommentar
Daniel Shub
am 19 Apr. 2012
In this case you do not need to catch the exception object (ME). You might want to check ME to make sure it was because the there was a mistake in the picture number and not some other error.
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!