1) To select the content you want to annotate, and then select the tool menu "Text|comment", if you want to change the comment into a statement, also select the statement to be changed, and then use the mouse to select "Text|uncomment". The keyboard shortcut is "Ctrl+r". or select the content you want to annotate, right click on the mouse to select "Comment", if you want to change the comment into a statement, also select the statement to be changed, and then right-click the mouse to select "Uncomment" uncomment. Keyboard shortcut keys are "Ctrl+t".
2) method two using Matlab block annotation method
%{
You need to comment on several command lines that are not executed
%}
3) method Three adds a line in front of the comment segment:
If LOGICAL (0) adds a line after the comment segment: End is different from the first two methods, and this method actually does not execute the related statement through the logical judgment statement
Transfer from http://blog.csdn.net/maopig/article/details/7497847
(go) MATLAB add block comment