- Put a try/catch around your code that is throwing the error.
- Use MException.last to retrieve the last error.
hold all warning in command line
조회 수: 2 (최근 30일)
이전 댓글 표시
is there any way i can prevent warning message from showing in the command line? and able to refer back the error msg after execution? im doing this because i dont wan to be interrupted as i want to demo my program
댓글 수: 0
답변 (1개)
Sean de Wolski
2013년 11월 12일
try
[17 1]*[1 2 0]
catch ME
end
Later on...
If you still have ME, you can use it. Else:
ME = MException.last
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Argument Definitions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!