I would like to include the warning() command in my MATLAB code. Ironically, I get a warning in the code editor that I can’t move.
If I use the warning('Warning message!') Line, the code editor tells me that I need to include the “message identifier” as the first argument. So, I turned to help warning , which tells me that the "message identifier" is just a string.
If I use the following line: warning('identifier','Warning message!') , I still get complaints from the editor. First of all, he still wants me to add a "message id" as the first argument. Also, now he tells me that "the format string may not match the count argument".
How to resolve this?
I am using MATLAB 2012a.
source share