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개)

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 Exchange에서 Scope 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