Question: how to comment multiple lines matlab?
Answer: For a single line, position the cursor in that line. For multiple lines, click in the line and then drag or Shift+click to select multiple lines.
Select Comment from the Text menu, or right-click and select it from the context menu.