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

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

Jan
Jan 2012년 3월 13일
The best idea would be to avoid the "error in the filename".

댓글을 달려면 로그인하십시오.

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 3월 13일

2 개 추천

Try use block try...catch..end in inside loop for...end

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2012년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by