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
The process ID may be useful for generating names for temporary files by appending it to a file basename.
Querying the process ID of the running kernel may produce a result like this: