How can I undo indenting after terminating a loop in my MATLAB file in MATLAB 7.6 (R2008a)?
21 views (last 30 days)
Show older comments
I have written a long for loop in my MATLAB file script. Now I want to terminate the enclosing loop (delete FOR and END statements) and undo the indenting of the enclosed code (align the code to the left).
I would like to do this without manually deleting the white space at the beginning of every line.
Accepted Answer
MathWorks Support Team
on 26 Jan 2010
You can manually apply smart indenting to selected lines select the lines and then select Smart Indent from the Text menu, or right-click and select it from the context menu (CTRL+I).
For further details about manual and automatic indenting please refer to the 'Indenting' section in the MATLAB documentation or run the following command in MATLAB 7.6 (R2008a):
web([docroot '/techdoc/matlab_env/f2-58922.html'])
0 Comments
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!