User`s guide

Desktop Tools and Development Environment
9-7
Shared Scope Color Preferences Apply to Persistent and Global Variables
Previously, the preference for Variables with shared scope was labeled Nonlocal
variables and it affected the color of variables within nested functions only. Now, the
Editor also applies this color preference to variables you declare as global or persistent.
This feature makes it easier to find reuses of a variable, which sometimes indicate
variable scoping problems. For details, including information on how to disable or change
the colors that the Editor uses for variables with shared scope, see Avoid Variable and
Function Scoping Problems.
Publishing MATLAB Code
New Desktop features and changes introduced in Version 7.11 (R2011a) are:
“Change to Menu Option for Including Blocks of LaTeX Code” on page 9-7
“Menu Option to Include Inline LaTeX Math in Published MATLAB Code” on page
9-7
Change to Menu Option for Including Blocks of LaTeX Code
Previously, if you wanted to include blocks of LaTeX code within your MATLAB code
intended for publishing, you selected Cell > Insert Text Markup > LaTeX Equation.
Now you select Cell > Insert Text Markup > LaTeX Display Math. The name of the
option was changed to better distinguish it from a new publishing option that enables
you to include inline LaTeX equations in your published code.
For details see LaTeX Display Math.
Menu Option to Include Inline LaTeX Math in Published MATLAB Code
The Cell menu now provides an option for including inline LaTeX equations. Position the
cursor within the comment line where you want the LaTeX equation to appear, and then
select Cell > Insert Text Markup > LaTeX Inline Math.
For details see Inline LaTeX Math Equations.
MATLAB Notebook Menu Labels
Menu labels for MATLAB Notebook are changed. To ensure your menu options are up to
date, and match those presented in the documentation, run the following command: