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
Get a vector of handles to all currently open MuPAD notebooks.
Suppose that your current folder contains MuPAD notebooks named
myFile2.mn. Open them keeping their handles in
Also create a new notebook with the handle
nb1 = mupad('myFile1.mn') nb2 = mupad('myFile2.mn') nb3 = mupad
nb1 = myFile1 nb2 = myFile2 nb3 = Notebook1
Suppose that there are no other open notebooks. Use
allMuPADNotebooks to get a vector of handles to
allNBs = allMuPADNotebooks
allNBs = myFile1 myFile2 Notebook1
If you already created a MuPAD notebook without a handle or if you lost the handle to a notebook,
allMuPADNotebooks to create a new handle.
Alternatively, you can save the notebook, close it, and then open it again using
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 = Notebook1
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
ans = x
L— All open MuPAD notebooks
All open MuPAD notebooks, returned as a vector of handles to these notebooks.