Reputation: 176
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?
Upvotes: 1
Views: 54
Reputation: 36720
The '-' is not allowed.
warning('Custom:dataMissing','Can''t access Customer Terms for data point #%d.',i)
Upvotes: 1