mark several line of code as comment

8 ビュー (過去 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 件のコメント
Locks
Locks 2013 年 4 月 15 日
perfect, thanks!

サインインしてコメントする。

その他の回答 (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 Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by