How to catch an error
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (1)
the cyclist
el 4 de Jun. de 2012
You need the try-catch construct. Look up
>> doc try
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!