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 Input Argument Type
— | Resulting MATLAB Data Type |
---|---|
| Numeric array |
|
|
|
|
| Cell array |
| Cell array |
| Cell array |
The following Python types are not supported by the MATLAB Engine API for Python:
array.array
(use MATLAB numeric
array objects instead; see MATLAB Arrays as Python Variables)
None
objectmodule
.type