"Close" all loops in a script m file

4 Ansichten (letzte 30 Tage)
alpedhuez
alpedhuez am 14 Jun. 2018
Kommentiert: alpedhuez am 16 Jun. 2018
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 Kommentar
KSSV
KSSV am 14 Jun. 2018
What's the condition to close the loops?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by