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

 Accepted Answer

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

1 Comment

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

Sign in to comment.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Asked:

on 26 Apr 2020

Commented:

on 26 Apr 2020

Community Treasure Hunt

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

Start Hunting!