MATLAB Runtime Server    

Summary List: MATLAB Runtime Engine Application

This list summarizes the steps for creating a MATLAB runtime engine application. The hyperlinks lead to the sections that describe the steps in more detail. Note that some links point to the chapter about MATLAB runtime GUI applications because the topic is the same for both types of application.

  1. Stamp your development copy of MATLAB.
  2. Adapt the design of the MATLAB portion of the application as necessary. See Design Issues for a Runtime Application.
  3. Decide where to place the MATLAB files you write for the runtime application.
  1. Create the startup function matlabrt.m by copying toolbox\runtime\matlabrt_template.m to toolbox\local and renaming it matlabrt.m. Then modify it as necessary and use rehash toolboxreset to register the change.
  1. Note that PC applications have special startup considerations arising from multiple versions or instances of MATLAB.

  1. Create the path definition function pathdefrt.m by copying toolbox\runtime\pathdefrt_template.m to toolbox\local and renaming it pathdefrt.m. Then modify it as necessary and use rehash toolboxreset to register the change.
  2. Use buildp to compile all application M-files into runtime P-files.
  3. Test the application.
  1. Return to earlier steps as necessary. When debugging, remember to stay current by deleting old P-files, producing new P-files whenever an M-file changes, and using rehash toolboxreset as necessary to register changes.


  Testing with the Runtime Server Variant Shipping a MATLAB Runtime Application