how i have reaction against error received of matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2015년 7월 15일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!