Save MuPAD 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.

To save changes in a notebook:

  1. Switch to the notebook. (You cannot save changes in a MuPAD notebook from the MATLAB Command Window.)

  2. Select File > Save or File > Save As from the main menu or use the toolbar.

If you want to save and close a notebook, you can use the close function in the MATLAB Command Window. If the notebook has been modified, then MuPAD brings up the dialog box asking if you want to save changes. Click Yes to save the modified notebook.


You can lose data when saving a MuPAD notebook. A notebook saves its inputs and outputs, but not the state of its engine. In particular, MuPAD does not save variables copied into a notebook using setVar(nb,...).