mark several line of code as comment

조회 수: 6 (최근 30일)
Locks
Locks 2013년 4월 15일
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일
CTRL+R is the shortcut

추가 답변 (1개)

Anand
Anand 2013년 4월 15일
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
Sean de Wolski
Sean de Wolski 2013년 4월 15일
Also, right clicking gives you these shortcuts
Locks
Locks 2013년 4월 15일
perfect, thanks

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by