MuPAD® notebooks are not recommended. 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.
MuPAD® notebook has two types of regions for entering data:
Text regions serve for entering
your comments. They can contain text, tables, mathematical formulas,
and graphics. Text regions do not have not bracket markers. The default
font color for text regions is black. To start a new text region,
click outside the gray brackets and start typing. Alternatively, you
can insert a new text region by selecting Insert>Text Paragraph or Insert>Text Paragraph Above. You cannot insert
a text region inside a region of other type or between adjacent input
and output regions.
Input regions serve for entering
your code. They can contain MuPAD mathematical expressions and
commands in the MuPAD language. Input regions have gray bracket
markers. The default font color for input regions is red. When you
evaluate an expression in the bottom input region, MuPAD inserts
a new input region below. To insert new input regions in other parts
of a notebook, select Insert>Calculation or Insert>Calculation Above from the main menu.
Alternatively, use the Insert Calculation button
MuPAD notebook has a special type of region for viewing results:
Output regions serve for viewing
results. These regions automatically appear when you evaluate input
regions. The results can include graphics and error messages. The
default font color for output regions is blue. You cannot edit data
in the output regions. To change the results, edit the associated
input region and evaluate it by pressing Enter.
Also, you can copy results from the output regions to the text and
input regions. When you copy outputs to the input regions, MuPAD inserts
ASCII equivalents of the results in the input regions.
If you want to change the default text color, font, or the appearance of brackets for the current notebook, see Changing Default Format Settings.
If you want to change preferences for all notebooks, see Setting Preferences for Notebooks.
Note: Most preferences affect only new notebooks. They do not affect existing notebooks.