Installation guide
Entering Statements in the Edito r/Debugger
Comment
ing in Java and C/C++ Files Using the MATLAB
Editor/Debugger
For Java
and C/C++ files, selecting Text > Comment adds the
// symbols at
the fron
t of the selected lines. Similarly, Text > Uncomm ent removes the
//
symbol
s from the front of selected lines in Java and C/C++ files.
Commenting in M-File Using Any Text Editor
You can
makeanylineinanM-fileacommentbytyping
% at the beginning of
the lin
e. T o put a comment within a line, type
% followed by the comment text;
MATLAB
treats all the information after the
% on a line as a comment.
To uncomment any line, delete the comment symbol, %.
6-17