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".

 Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 25 Jan. 2012

1 Stimme

Use a try/catch block.
doc try

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 25 Jan. 2012

0 Stimmen

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"

Kategorien

Mehr zu Scope Variables and Generate Names finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by