- select the text you want to tidy up
- use the menu "Text" -> "Smart Indent" (or the shortcut, which is cmd-I on the Mac, and something similar on PC's)
for loop
3 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Jos (10584)
on 22 Mar 2011
In the Matlab Editor,
6 Comments
Matt Fig
on 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.
See Also
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!