MATLAB Answers

"Close" all loops in a script m file

6 views (last 30 days)
alpedhuez
alpedhuez on 14 Jun 2018
Commented: alpedhuez on 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 Comment

KSSV
KSSV on 14 Jun 2018
What's the condition to close the loops?

Sign in to comment.

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.

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.