Format Expressions in Input Regions

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 commands and expression in the input regions:

  1. Select Format>Calculation in the main menu.

  2. Set your formatting preferences. You can define indentation, spacing at the top and bottom of the calculation, and width of the left bracket that encloses the input region.

    If you want to experiment with different settings for input regions, and see how the formatted expressions and commands look in your notebook, click the Apply button. This button applies formatting to the selected region and leaves the Calculation 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 Calculation Format dialog box.