mupad

Start MuPAD notebook

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.

Description

example

mphandle = mupad creates a MuPAD notebook, and keeps a handle (pointer) to the notebook in the variable mphandle. You can use any variable name you like instead of mphandle.

example

mphandle = mupad(file) opens the MuPAD notebook named file and keeps a handle (pointer) to the notebook in the variable mphandle. The file name must be a full path unless the file is in the current folder. You also can use the argument file#linktargetname to refer to the particular link target inside a notebook. In this case, the mupad function opens the MuPAD notebook (file) and jumps to the beginning of the link target linktargetname. If there are multiple link targets with the name linktargetname, the mupad function uses the last linktargetname occurrence.

Examples

collapse all

When you start or open a MuPAD notebook, you can choose to use MATLAB live script instead.

To start a new notebook and define a handle mphandle to the notebook, enter:

mphandle = mupad;

To open an existing notebook named notebook1.mn located in the current folder, and define a handle mphandle to the notebook, enter:

mphandle = mupad('notebook1.mn');

To open a notebook and jump to a particular location, create a link target at that location inside a notebook and refer to it when opening a notebook. For example, if you have the Conclusions section in notebook1.mn, create a link target named conclusions and refer to it when opening the notebook. The mupad function opens notebook1.mn and scroll it to display the Conclusions section:

mphandle = mupad('notebook1.mn#conclusions');

For information about creating link targets, see Work with Links.

Introduced in R2008b