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 ExchangeLoops and Conditional Statements についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by