The following table shows how MATLAB® converts data returned from Python® into MATLAB types.
Python Return Type, as Displayed in Python
Resulting MATLAB Type — Scalar
All other Python types —
Python object —
MATLAB provides the following functions to convert Python data types to MATLAB types manually.
Python Return Type or Protocol, as Displayed in MATLAB
MATLAB Conversion Function
Sequence protocol; for example,
Mapping protocol; for example,