This enhancement has been made for Release 14 (R14). You can use the following syntax to comments a block of code in MATLAB release 14 (R14) onwards:
For previous product releases, please read below for any possible workarounds:
If you are using the MATLAB editor, you can highlight the block of code that you want to comment then select the "Text->Comment" menu item or type a Control-R to comment the whole block. To uncomment the block, once again select the block of code, select "Text->Uncomment" or type Control-T key combination. This functionality is also available through right-mouse-clicks.
You cannot comment your MATLAB code with /*....*/ as in C. However, the above workaround should allow you to accomplish the same goal, to comment an entire block.