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

 Akzeptierte Antwort

Les Beckham
Les Beckham am 26 Apr. 2020

0 Stimmen

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

1 Kommentar

alpedhuez
alpedhuez am 26 Apr. 2020
Yes or select these parts, right click, and choose "comment."

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by