In Matlab when issuing a custom warning, the message-id is not being recognized. How do I correct this?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am issuing a warning in my code like -
warning('Custom:data-missing','Can''t access Customer Terms for data point #%d.',i)
When this is triggered on the command window I see
Warning: Custom:data-missing
> In asr_stfr_terms at 97
Why is this happening? Instead of the warning message, why is Matlab printing the message_id?
댓글 수: 0
채택된 답변
Sean de Wolski
2014년 5월 28일
It doesn't like the hyphen:
warning('Custom:data_missing','Can''t access Customer Terms for data point #%d.',i)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!