Main Content

JavaEngine API Summary

com.mathworksPackages

Classes incom.mathworksPackage Purpose
com.mathworks.engine.MatlabEngine

Definition of the API for the Java®engine

com.mathworks.engine.EngineException

Failure by MATLAB®to start, connect, terminate, or disconnect

com.mathworks.engine.UnsupportedTypeException

不支金宝app持的数据类型在MATLAB的输入或输出function

com.mathworks.engine.MatlabExecutionException

Runtime error in MATLAB code

com.mathworks.engine.MatlabSyntaxException

Syntax error in MATLAB expression

Thecom.mathworks.matlab.typespackage provides support for specialized MATLAB types in Java.

Classes incom.mathworks.matlab.typesPackage MATLAB Type
com.mathworks.matlab.types.Complex

MATLABcomplexvalues in Java

com.mathworks.matlab.types.HandleObject

MATLABhandleobjects in Java

com.mathworks.matlab.types.ValueObject

MATLAB value objects in Java

com.mathworks.matlab.types.Struct

MATLABstruct(structures) in Java

com.mathworks.matlab.types.CellStr

创建一个cellarray of characters to pass to MATLAB

com.mathworks.engine.MatlabEngineMethods

Static methods Purpose

startMatlab

Start MATLAB synchronously

startMatlabAsync

Start MATLAB asynchronously

findMatlab

Find all available shared MATLAB sessions running on the local machine synchronously

findMatlabAsync

Find all available shared MATLAB sessions from local machine asynchronously

connectMatlab

Connect to a shared MATLAB session on local machine synchronously

connectMatlabAsync

Connect to a shared MATLAB session on local machine asynchronously

Member Methods Purpose

feval

Evaluate a MATLAB function with arguments synchronously

fevalAsync

Evaluate a MATLAB function with arguments asynchronously

eval

Evaluate a MATLAB statement as a string synchronously

evalAsync

Evaluate a MATLAB statement as a string asynchronously

getVariable

Get a variable from the MATLAB base workspace synchronously

getVariableAsync

Get a variable from the MATLAB base workspace asynchronously

putVariable

Put a variable in the MATLAB base workspace synchronously

putVariableAsync

Put a variable in the MATLAB base workspace asynchronously

disconnect

Explicitly disconnect from the current MATLAB session synchronously

disconnectAsync

Explicitly disconnect from the current MATLAB session asynchronously

quit

Force the shutdown of the current MATLAB session synchronously

quitAsync

Force the shutdown of the current MATLAB session asynchronously

close

Disconnect or terminate current MATLAB session

java.util.concurrent.Future Interface

Member Methods Purpose

get

Wait for the computation to complete and then return the result

取消

Attempt to cancel execution of this task

isCancelled

Returntrueif this task was cancelled before it completed

isDone

Returntrueif this task completes

For more information, see the Java documentation forjava.util.concurrent.Future.