How to catch an error
Show older comments
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!
Accepted Answer
More Answers (1)
the cyclist
on 4 Jun 2012
You need the try-catch construct. Look up
>> doc try
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!