where can i find all the special comment properties ?

57 views (last 30 days)
as i am going through the codes i can see some special comments
%#ok<SAGROW>
%#ok<AGROW>
%#ok<NOPTS>
where can i find all such special comment properties.
if possible please share a link of such documentation.
thanks in advance..!

Accepted Answer

John D'Errico
John D'Errico on 15 Aug 2020
These are flags to allow you to supress specific MATLAB code analyzer warnings.
Perhaps best, read here:
As MATLAB has evolved over the years, the need for specific warnings has also evolved. So I don't know of a specific hard list of all possible warnings.
You can also look at the MATLAB preferences for the Code Analyzer.
  2 Comments
Stephen23
Stephen23 on 15 Aug 2020
The recommended/default suppression codes do change by version, and most likely get added/removed too, so any list is likely to need to be version-specific.
OMKARAM RAJESHWARA RAJU
OMKARAM RAJESHWARA RAJU on 20 Oct 2020
Edited: OMKARAM RAJESHWARA RAJU on 20 Oct 2020
sir, where can i find the list for specific version of matlab..?
Now i'm using R2020b

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 15 Aug 2020
  1. Type control-shift-f.
  2. In the "Find files containing text" field, put %#ok<
  3. In the "Include only file type(s):" field, select *.m
  4. Select the current folder, or any other folder you want.
  5. Check "Include subfolders" checkbox.
  6. Click Find
This will find all places in your m-files where the author put lines like that.
If you actually want to know what those symbols mean, then check the other answer(s).

Categories

Find more on Characters and Strings in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!