Main Content

matlabProcessID

Process identifier for MATLAB code execution process

Since R2025a

    Description

    pid = matlabProcessID returns the process identifier as a uint64 for this MATLAB® process. You can use this process ID to identify a MATLAB process for debugging workflows.

    example

    Examples

    collapse all

    Append the process ID to the string "logfile_".

    logfileName = "logfile_" + matlabProcessID
    logfileName = 
    
        "logfile_23016"

    Version History

    Introduced in R2025a