mark several line of code as comment

13 vues (au cours des 30 derniers jours)
Locks
Locks le 15 Avr 2013
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?

Réponse acceptée

FruitsLord
FruitsLord le 15 Avr 2013
CTRL+R is the shortcut
  1 commentaire
Locks
Locks le 15 Avr 2013
perfect, thanks!

Connectez-vous pour commenter.

Plus de réponses (1)

Anand
Anand le 15 Avr 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 commentaires
Sean de Wolski
Sean de Wolski le 15 Avr 2013
Also, right clicking gives you these shortcuts
Locks
Locks le 15 Avr 2013
perfect, thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by