Note: MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
Before creating a MuPAD notebook, it is best to decide which interface you intend to use primarily for your task. The two approaches are:
Perform your computations in the MATLAB Live Editor while using MuPAD notebooks as an auxiliary tool. This approach is recommended and implies that you create a MuPAD notebook, and then execute it, transfer data and results, or close it from the MATLAB Live Editor.
Perform your computations and obtain the results in the MuPAD Notebook app. This approach is not recommended and implies that you use the MATLAB Live Editor only to access MuPAD, but do not intend to copy data and results between MATLAB and MuPAD.
If you created a MuPAD notebook without creating a handle,
and then realized that you need to transfer data and results between MATLAB and MuPAD,
allMuPADNotebooks to create
a handle to this notebook:
mupad nb = allMuPADNotebooks
nb = Notebook1
This approach does not require saving the notebook. Alternatively, you can save the notebook and then open it again, creating a handle.
If you perform computations in both interfaces, use handles to notebooks. The toolbox uses this handle for communication between the MATLAB workspace and the MuPAD notebook.
To create a blank MuPAD notebook from the MATLAB Command Window, type
nb = mupad
nb is a handle to the notebook.
You can use any variable name instead of
To create several notebooks, use this syntax repeatedly, assigning
a notebook handle to different variables. For example, use the variables
and so on.
To create a new blank notebook:
On the MATLAB Toolstrip, click the Apps tab.
On the Apps tab, click the down arrow at the end of the Apps section.
Under Math, Statistics and Optimization, click the MuPAD Notebook button.
To create several MuPAD notebooks, click the MuPAD Notebook button repeatedly.
To create a new blank notebook, type
the MATLAB Command Window.
The Welcome to MuPAD dialog box lets you create a new notebook
or program file, open an existing notebook or program file, and access
documentation. To open this dialog box, type
the MATLAB Command Window.
If you already opened a notebook, you can create new notebooks and program files without switching to the MATLAB Live Editor:
To create a new notebook, select File > New Notebook from the main menu or use the toolbar.
To open a new Editor window, where you can create a program file, select File > New Editor from the main menu or use the toolbar.