continue despite the error

How to continue main program, though the error in subprogram appears and stops all. What is the quick solution to have an error and continue next iteration or next command in main program?

 Réponse acceptée

Arthur
Arthur le 6 Nov 2012

2 votes

you can use try...catch
doc try

Plus de réponses (1)

Matt J
Matt J le 6 Nov 2012

0 votes

Is the error issued by you or by MATLAB? If by you, issue a warning instead.

Catégories

En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by