How to block out code in Live Script

4 visualizzazioni (ultimi 30 giorni)
alpedhuez
alpedhuez il 26 Apr 2020
Commentato: alpedhuez il 26 Apr 2020
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

Risposta accettata

Les Beckham
Les Beckham il 26 Apr 2020
%{
a = 1;
b = 2;
%}
c = 3;
  1 Commento
alpedhuez
alpedhuez il 26 Apr 2020
Yes or select these parts, right click, and choose "comment."

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Modeling in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by