"Close" all loops in a script m file

3 views (last 30 days)
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?

Accepted Answer

Steven Lord
Steven Lord on 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.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!