How to catch an error
Mostra commenti meno recenti
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!
Risposta accettata
Più risposte (1)
the cyclist
il 4 Giu 2012
You need the try-catch construct. Look up
>> doc try
Categorie
Scopri di più su Programming in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!