Java Data Type Conversions
Pass Java Data to MATLAB
This table shows how the MATLAB® engine API maps Java® data types to MATLAB data types.
Java Type | MATLAB Type for Scalar Data | MATLAB Type for Array Data |
---|---|---|
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
MATLAB handle object | MATLAB handle object | |
MATLAB value object | MATLAB value object | |
Nonrectangular (jagged) array | N/A |
Pass MATLAB Data to Java
This table shows how the MATLAB engine API maps MATLAB data types to Java data types.
MATLAB Type | Java Type for Scalar Data | Java Type for Array Data |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
Mixed cell array | N/A |
|
MATLAB handle object | ||
MATLAB value object | ||
Complex number | ||