In Matlab when issuing a custom warning, the message-id is not being recognized. How do I correct this?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Udit Gupta
am 28 Mai 2014
Kommentiert: Udit Gupta
am 28 Mai 2014
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 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 28 Mai 2014
It doesn't like the hyphen:
warning('Custom:data_missing','Can''t access Customer Terms for data point #%d.',i)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Performance and Memory finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!