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!