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.
A MuPAD® notebook has three types of regions: input regions, output regions, and text regions.
In the input regions, marked by grey brackets, you can type mathematical expressions and commands in the MuPAD language. For example, type the following expression and press Enter to evaluate the result:
3*2^10 + 1/3 - 3
The results (including graphics) appear in a new output region. The default font color for input regions is red, and the default font color for output regions is blue. To customize default settings, see Changing Default Format Settings.
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 the place in a notebook where you want to insert a new input region
Insert a new input region:
To insert an input region below the cursor position, select Insert>Calculation from the main menu.
To insert an input region above the cursor position, select Insert>Calculation Above from the main menu.
You can type and format text in a notebook similar to working in any word processing application. To start a new text region, click outside the gray brackets and start typing.
Also, to insert a new text region, you can select Insert>Text Paragraph or Insert>Text Paragraph Above. You cannot insert a text region between adjacent input and output regions.
You can exchange data between different regions in a notebook. For example, you can:
Copy expressions and commands from the text regions to the input regions and evaluate them.
Copy expressions and commands from the input regions to the text regions.
Copy results including mathematical expressions and graphics from the output regions to the text regions.
Copy results from the output regions to the input regions. Mathematical expressions copied from the output regions appear as valid MuPAD input commands.
You cannot paste data into the output regions. To change the results, edit the associated input region and evaluate it by pressing Enter.