MATLAB Engine API for Java

The MATLAB® Engine API for Java® enables Java programs to interact with MATLAB synchronously or asynchronously, including:

  • Start and terminate MATLAB.

  • Connect to and disconnect from MATLAB sessions on the local machine.

  • Call MATLAB functions with input arguments passed from Java and output variables returned from MATLAB.

  • Evaluate MATLAB statements in the MATLAB base workspace.

  • Pass variables from Java to MATLAB and MATLAB to Java.

Asynchronous communication with MATLAB is based on the Java Future interface, java.util.concurrent.Future.

The MATLAB Engine API for Java is included as part of the MATLAB product. You must have JDK™ 7 or a later version installed to build a MATLAB Engine application for Java.

Related Topics

Was this topic helpful?