for loop

11 vues (au cours des 30 derniers jours)
S
S le 22 Mar 2011
Hi everyone,
I want to tidy up lots of for loops I have. I have confused which end in belongs to which 'if' or 'for'. I know there is a very to tidy up, but I can not remember. Would you please help me on that. Thank you!
S.

Réponses (1)

Jos (10584)
Jos (10584) le 22 Mar 2011
In the Matlab Editor,
  1. select the text you want to tidy up
  2. use the menu "Text" -> "Smart Indent" (or the shortcut, which is cmd-I on the Mac, and something similar on PC's)
  6 commentaires
Andrew Newell
Andrew Newell le 23 Mar 2011
I never thought of tab that way either, but it would be very tidy!
Matt Fig
Matt Fig le 23 Mar 2011
It doesn't matter to me what the shortcut key is, I am just glad TMW included one to do the job.

Connectez-vous pour commenter.

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