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

 采纳的回答

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

1 个评论

Yes or select these parts, right click, and choose "comment."

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by