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.


Process ID of the running kernel

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.




getpid() returns the process ID of the running MuPAD® kernel.

The process ID may be useful for generating names for temporary files by appending it to a file basename.


Example 1

Querying the process ID of the running kernel may produce a result like this:


Return Values

Nonnegative integer.

See Also

MuPAD Functions

Was this topic helpful?