This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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,...).