About the MATLAB® Adapter

You can use the MATLAB adapter to allow Automation Process Composer to interact with the MATLAB software package from The MathWorks, Inc. Because this adapter is interacting directly with a MATLAB engine, anything that you can do in MATLAB you can invoke from Automation Process Composer using the MATLAB adapter.

See Also
Adding Actions
Defining Commands
Defining Mappings

Because the MATLAB adapter must programmatically interact with the MATLAB software, it is important to make sure your environment is set up properly. You must specify where the MATLAB executable is installed so that, when the MATLAB adapter runs, it can find the executable and launch it.

To use the MATLAB adapter, you define actions, which can be either commands or mappings (input or output). You then determine when you want the actions to take place (in which “phase”). There are three phases from which to choose:

  • Initialize. The MATLAB adapter completes the actions only the first time that the adapter runs within a job.

  • Execution Order. The MATLAB adapter completes actions every time the MATLAB adapter runs.

  • Finalize. The MATLAB adapter completes actions only when the MATLAB session is shutting down.

The standard usage is to define actions in the Execution Order phase. By default, the MATLAB adapter starts with three predefined actions in the Execution Order phase to represent the most common usage:

  • Input Mappings for defining mappings from Automation Process Composer parameter values to MATLAB variables.

  • Commands for defining the command to run.

  • Output Mappings for mapping MATLAB variable values back to Automation Process Composer parameters.

These default actions are provided for convenience and can be deleted or renamed. They are empty to start with, and the details of each must be completed as needed.