필터 지우기
필터 지우기

"Close" all loops in a script m file

조회 수: 4 (최근 30일)
alpedhuez
alpedhuez 2018년 6월 14일
댓글: alpedhuez 2018년 6월 16일
I have multiple for loop
for a=1
test
end
for b=1
test
end
In an editor I can "close" the loops with (+) and (-). Is there any way to close all loops in a script file?
  댓글 수: 1
KSSV
KSSV 2018년 6월 14일
What's the condition to close the loops?

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

채택된 답변

Steven Lord
Steven Lord 2018년 6월 14일
Yes, it is possible to fold all loops in a file. See the "Code Folding" section on this documentation page for more information.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by