Java Engine API Summary
com.mathworks Packages
Classes in com.mathworks Package | Purpose |
---|---|
com.mathworks.engine.MatlabEngine | Definition of the API for the Java® engine |
Failure by MATLAB® to start, connect, terminate, or disconnect | |
Unsupported data type in input or output of MATLAB function | |
Runtime error in MATLAB code | |
Syntax error in MATLAB expression |
The com.mathworks.matlab.types
package provides
support for specialized MATLAB types in Java.
Classes in com.mathworks.matlab.types Package | MATLAB Type |
---|---|
com.mathworks.matlab.types.Complex | MATLAB |
com.mathworks.matlab.types.HandleObject | MATLAB |
com.mathworks.matlab.types.ValueObject | MATLAB value objects in Java |
com.mathworks.matlab.types.Struct | MATLAB |
Create a |
com.mathworks.engine.MatlabEngine
Methods
Static methods | Purpose |
---|---|
Start MATLAB synchronously | |
Start MATLAB asynchronously | |
Find all available shared MATLAB sessions running on the local machine synchronously | |
Find all available shared MATLAB sessions from local machine asynchronously | |
connectMatlab | Connect to a shared MATLAB session on local machine synchronously |
Connect to a shared MATLAB session on local machine asynchronously |
Member Methods | Purpose |
---|---|
Evaluate a MATLAB function with arguments synchronously | |
Evaluate a MATLAB function with arguments asynchronously | |
Evaluate a MATLAB statement as a string synchronously | |
Evaluate a MATLAB statement as a string asynchronously | |
Get a variable from the MATLAB base workspace synchronously | |
Get a variable from the MATLAB base workspace asynchronously | |
Put a variable in the MATLAB base workspace synchronously | |
Put a variable in the MATLAB base workspace asynchronously | |
Explicitly disconnect from the current MATLAB session synchronously | |
Explicitly disconnect from the current MATLAB session asynchronously | |
Force the shutdown of the current MATLAB session synchronously | |
Force the shutdown of the current MATLAB session asynchronously | |
Disconnect or terminate current MATLAB session |
java.util.concurrent.Future Interface
Member Methods | Purpose |
---|---|
| Wait for the computation to complete and then return the result |
| Attempt to cancel execution of this task |
| Return |
| Return |
For more information, see the Java documentation for java.util.concurrent.Future
.