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

조회 수: 3 (최근 30일)
Chris
Chris 2012년 3월 13일
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일
Try use block try...catch..end in inside loop for...end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

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

Community Treasure Hunt

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

Start Hunting!

Translated by