Main Content

desktop

R2026b

Start the MATLAB desktop and get status

    Description

    desktop starts the MATLAB® desktop.

    tf = desktop("inuse") returns whether the MATLAB desktop is currently open and in use. (since R2026b)

    example

    Examples

    collapse all

    Since R2026b

    Check whether the MATLAB desktop is open and in use.

    tf = desktop("inuse")
    tf =
    
      logical
    
       1

    Output Arguments

    collapse all

    Since R2026b

    Whether the MATLAB desktop is in use, returned as logical 1 or 0. tf is logical 1 if MATLAB is running with the desktop open and in use. tf is logical 0 if MATLAB is running without the desktop.

    Version History

    Introduced before R2006a