How to block out code in Live Script

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 4월 26일
댓글: alpedhuez 2020년 4월 26일
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일
%{
a = 1;
b = 2;
%}
c = 3;
  댓글 수: 1
alpedhuez
alpedhuez 2020년 4월 26일
Yes or select these parts, right click, and choose "comment."

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by