I have an mlx script in which I am analyzing code written by someone else. I am using this so that I have access to LaTeX snippets as well as the MatLab environment. But, I am also including incomplete code fragments as part of the document (so I can point out what I am talking about and remind myself of details). And this causes MatLab to generate error notation, which I find distracting.
I have included %#ok<*DEFNU,*NASGU,*SOFOC,*VUNUS,*NOPRT>
at the top of the file to avoid much of this. But, I keep finding more errors pop up. I have tried #<*ALL>
but this does not work.
Is there any way, inside the file, to suppress all errors?
**Disclaimer: **This question is asked in all honesty in the context that it is something that I would like an answer to so as to improve my experience of MatLab and increase my options for using it. And with the principle that since this was of interest to me, in the course of my work, then it might be of interest to others. I have attempted to explain my motivation. If this is not clear, please just ask.