continuing a program after red error messages

is there any way to not allow red errore messages to stop my program?
i would run it for a certain amount of times giving it random inputs, but it stops when the inputs are not "right".

 採用された回答

Sean de Wolski
Sean de Wolski 2012 年 1 月 25 日

1 投票

Use a try/catch block.
doc try

1 件のコメント

Francesco
Francesco 2012 年 1 月 26 日
it's what i was looking for, thanks.

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 1 月 25 日

0 投票

Perhaps using "cell mode" would work for you; see http://www.mathworks.com/help/techdoc/matlab_env/brqxeeu-259.html
It is intended more for "rapid code development" and might not fit your needs.
Also remember "dbstop if error"

カテゴリ

ヘルプ センター および File ExchangeScope Variables and Generate Names についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by