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

3 views (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!