mark several line of code as comment

10 visualizaciones (últimos 30 días)
Locks
Locks el 15 de Abr. de 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?

Respuesta aceptada

FruitsLord
FruitsLord el 15 de Abr. de 2013
CTRL+R is the shortcut

Más respuestas (1)

Anand
Anand el 15 de Abr. de 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 comentarios
Sean de Wolski
Sean de Wolski el 15 de Abr. de 2013
Also, right clicking gives you these shortcuts
Locks
Locks el 15 de Abr. de 2013
perfect, thanks

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by