logo

How to Comment and Uncomment Multiple Lines at Once in MATLAB 📂Programing

How to Comment and Uncomment Multiple Lines at Once in MATLAB

Method

KakaoTalk\_20190622\_201651528.png

KakaoTalk\_20190622\_201711135.png

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.