Pass Data to MATLAB from Python
Python Type to MATLAB Scalar Type Mapping
When you pass Python® data as input arguments to MATLAB® functions, the MATLAB Engine for Python converts the data into equivalent MATLAB data types.
Python Input Argument Type
— | Resulting MATLAB Data Type |
---|---|
|
|
| Complex |
|
|
|
|
|
|
|
|
|
|
| Structure if all keys are strings |
Python Container to MATLAB Array Type Mapping
Python Input Argument Type
— | Resulting MATLAB Data Type |
---|---|
| Numeric array |
|
|
|
|
| Cell array |
| Cell array |
| Cell array |
Unsupported Python Types
The MATLAB Engine API does not support these Python types.
Python class (
) objectsmodule
.type
None