How to Comment and Uncomment Multiple Lines at Once in MATLAB
Method
To comment out a section that you want, drag to select the area and then press Ctrl+R. This will comment out the entire selected portion. To undo, drag to select the same area and press Ctrl+T, which will remove the % from each line.