All open notebooks

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.



L = allMuPADNotebooks returns a vector with handles (pointers) to all currently open MuPAD notebooks.

If there are no open notebooks, allMuPADNotebooks returns an empty object [ empty mupad ].


collapse all

Get a vector of handles to all currently open MuPAD notebooks.

Suppose that your current folder contains MuPAD notebooks named and Open them keeping their handles in variables nb1 and nb2, respectively. Also create a new notebook with the handle nb3:

nb1 = mupad('')
nb2 = mupad('')
nb3 = mupad
nb1 = 

nb2 = 

nb3 = 

Suppose that there are no other open notebooks. Use allMuPADNotebooks to get a vector of handles to these notebooks:

allNBs = allMuPADNotebooks
allNBs = 

If you already created a MuPAD notebook without a handle or if you lost the handle to a notebook, use allMuPADNotebooks to create a new handle. Alternatively, you can save the notebook, close it, and then open it again using a handle.

Create a new notebook:


Suppose that you already performed some computations in that notebook, and now want to transfer a few variables to the MATLAB workspace. To be able to do it, you need to create a handle to this notebook:

nb = allMuPADNotebooks
nb = 

Now, you can use nb when transferring data and results between the notebook Notebook1 and the MATLAB workspace. This approach does not require you to save Notebook1.

ans =

Output Arguments

collapse all

All open MuPAD notebooks, returned as a vector of handles to these notebooks.

Introduced in R2013b