mark several line of code as comment

hi,
I know that the % sign is used to make code to comment, but unfortunately I am not able to do this for a whole paragraph, is there a way to mark a whole paragraph as comment?

 Risposta accettata

FruitsLord
FruitsLord il 15 Apr 2013

0 voti

CTRL+R is the shortcut

Più risposte (1)

Anand
Anand il 15 Apr 2013
If you want a comment block you could do this:
%{
...
CODE THAT SHOULDN'T RUN
...
...
%}
Note that the '%{' needs to be a new line with nothing else on that line.

4 Commenti

Locks
Locks il 15 Apr 2013
thanks, that's even better.
is there a shortcut to make the comment to code again?
ctrl + t
Also, right clicking gives you these shortcuts
Locks
Locks il 15 Apr 2013
perfect, thanks

Accedi per commentare.

Categorie

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by