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® Command Window using MuPAD notebooks as an auxiliary tool. This approach implies that you create a MuPAD notebook, and then execute it, transfer data and results, or close it from the MATLAB Command Window.
Perform your computations and obtain the results in the MuPAD Notebook app. This approach implies that you use the MATLAB Command Window 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, use 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
The variable nb is a handle to the notebook. You can use any variable name instead of nb.
To create several notebooks, use this syntax repeatedly, assigning a notebook handle to different variables. For example, use the variables nb1, nb2, 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 mupad in 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 mupadwelcome in the MATLAB Command Window.
If you already opened a notebook, you can create new notebooks and program files without switching to the MATLAB Command Window:
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.