Documentation

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.

mupad

Start MuPAD notebook

Syntax

mphandle = mupad
mphandle = mupad(file)

Description

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.

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

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

reset(symengine);
if ~feature('ShowFigureWindows')
     disp('no display available, skipping test ....');
else mphandle = mupad; end
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

Was this topic helpful?