"Close" all loops in a script m file

4 vues (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 14 Juin 2018
Commenté : alpedhuez le 16 Juin 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 commentaire
KSSV
KSSV le 14 Juin 2018
What's the condition to close the loops?

Connectez-vous pour commenter.

Réponse acceptée

Steven Lord
Steven Lord le 14 Juin 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 commentaire
alpedhuez
alpedhuez le 16 Juin 2018
Great help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by