how i have reaction against error received of matlab?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
xosro
il 14 Lug 2015
Modificato: Walter Roberson
il 18 Lug 2015
i have a for loop with a condition on receive or not receive a error of matlab program, how i can have this condition?
0 Commenti
Risposta accettata
Walter Roberson
il 15 Lug 2015
for variable = first : last
got_error = true;
try
do something risky here
got_error = false; %only gets here if the risky thing worked
catch ME
do something about the error; the details of it are in ME
end
if got_error
we had an error and did something with it but maybe we want to know that later
end
end
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!