User`s guide
R2007b
19-12
New look and position of Run/Continue button
Run/Continue button in previous versions
Compatibility Considerations
The button performs the same as it did in previous versions, but you need to access it in
the new position.
Code Folding Feature for Collapsing and Expanding Code
To improve the readability of files containing several subfunctions, the Editor includes
a code folding feature, which is enabled by default. Using this feature you can collapse
and expand subfunctions and their associated help. The following figure shows the
collatzplot_new function collapsed, such that only the function definition is displayed.
The figure shows the collatz function expanded, revealing both the help code and the
function code. If you collapse just the help code, only the H1 help line displays.
• To expand code that is collapsed, click the plus sign (+) to the left of the code you want
to expand.
• To collapse code that is expanded, click the minus sign (-) to the left of the code you
want to collapse.
• To expand or collapse all of the code in an M-file, place your cursor anywhere within
the M-file, right-click, and then select Code Folding > Expand All or Code
Folding > Collapse All from the context menu.
For more information, see Code Folding—Expanding and Collapsing M-File Constructs