User`s guide

R2007a
20-20
Terminate statement with semicolon to suppress output.
However, M-Lint suppressed displaying the message for files with three or more cells (a
cell being indicated by a line with an initial %%). This was done based on the assumption
that such files were demo programs, and therefore display of the output was intentional.
In MATLAB Version 7.4 (R2007a), M-Lint no longer makes a distinction for files with
three or more cells. Instead, M-Lint displays one message for scripts and a different
message for functions:
Terminate statement with semicolon to suppress output (in functions).
Terminate statement with semicolon to suppress output (in scripts).
The corresponding M-Lint tags to suppress display of such messages within a line are
%#ok<NOPRT> for functions, and %#ok<NOPTS> for scripts.
By default, both of the messages are initially selected in Preferences.
Compatibility Considerations
In MATLAB Version 7.3 (R2006b), %#ok<NOPRT> was the only tag used to suppress the
missing terminating semicolon. The tag will remain valid for function files, but will not
be valid for script files. If you added any %#ok<NOPRT> tags in script files in R2006b,
change those tags to the new tag %#ok<NOPTS>.
Macintosh Platforms—Some Key Bindings in Editor/Debugger Changed
On Macintosh platforms, some key bindings were changed to make them more consistent
with standard behaviors for Mac OS X.
Compatibility Considerations
Key bindings you have been used to in the Editor/Debugger might have changed.
Other Changes in the Editor/Debugger
There is a new confirmation preference for displaying a warning about exiting debug
mode in order to save a file.
Tuning and Managing M-Files
There was a minor change in M-Lint behavior—for details, see “M-Lint Detection of
Missing End-of-Line Semicolons Enhanced” on page 20-19.