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?

 채택된 답변

FruitsLord
FruitsLord 2013년 4월 15일

0 개 추천

CTRL+R is the shortcut

추가 답변 (1개)

Anand
Anand 2013년 4월 15일

1 개 추천

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

Locks
Locks 2013년 4월 15일
thanks, that's even better.
is there a shortcut to make the comment to code again?
Sean de Wolski
Sean de Wolski 2013년 4월 15일
ctrl + t
Sean de Wolski
Sean de Wolski 2013년 4월 15일
Also, right clicking gives you these shortcuts
Locks
Locks 2013년 4월 15일
perfect, thanks

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Naming Conventions에 대해 자세히 알아보기

질문:

2013년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by