This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Save MuPAD Notebooks


MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though 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,...).

Was this topic helpful?