- 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 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jos (10584)
2011-3-22
In the Matlab Editor,
6 个评论
Matt Fig
2011-3-23
It doesn't matter to me what the shortcut key is, I am just glad TMW included one to do the job.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!