How to catch an error
Afficher commentaires plus anciens
Hi,
if I get an error I want change the algorithm: like this:
if ERROR
ALGORITHM 2
else
ALGORITHM 1
end
Hope someone can help.
Thank YOu!
Réponse acceptée
Plus de réponses (1)
the cyclist
le 4 Juin 2012
You need the try-catch construct. Look up
>> doc try
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!