How to block out code in Live Script

Suppose I have a live script like
a=1
and
b=2
and
c=3
Now I want to comment out the first two block of the code. That is,
%a=1
and
%b=2
and
%c=3
But is there any way to block out like?
/*
a=1
and
b=2
*/
c=3

 採用された回答

Les Beckham
Les Beckham 2020 年 4 月 26 日

0 投票

%{
a = 1;
b = 2;
%}
c = 3;

1 件のコメント

alpedhuez
alpedhuez 2020 年 4 月 26 日
Yes or select these parts, right click, and choose "comment."

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

質問済み:

2020 年 4 月 26 日

コメント済み:

2020 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by