How to catch an error
显示 更早的评论
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!
采纳的回答
更多回答(1 个)
the cyclist
2012-6-4
You need the try-catch construct. Look up
>> doc try
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!