Format Mathematical Expressions

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

You can change font style, size, and color of mathematical expressions in text regions in the same way you format regular text. See Choosing Font Style, Size, and Colors for more details.

For additional formatting of mathematical expressions:

  1. Select Format > Math.

  2. Set your formatting preferences. You can define the script size, choose between inline (embedded in text) or displayed styles, and use the Slant identifiers check box to italicize variables. Also, you can specify whether you want to wrap long mathematical expressions to a notebook window size.

    If you want to experiment with different settings for mathematical expressions and see how the formatted expression looks in your notebook, click Apply. This button applies formatting to the selected text and leaves the Math Format dialog box open. You can change settings several times without having to open this dialog box for each change. When you finish formatting, click OK to close the Math Format dialog box.