Core_py2matlab: convert data from Python to MATLAB and back.
With a Python distribution and MATLAB installed on the same machine, MATLAB can create Python data structures from within; e.g. myPyStr = py.str('Hello World!'). Python data structures can also be created within MATLAB by the output of a Python package. Python data can be converted back into a MATLAB data type through type-conversion, e.g. char(myPyStr). This function automates the identification of the Python data type and convert it to the appropriate MATLAB data type and vice versa.
Cite As
Kyle (2024). Core_py2matlab: convert data from Python to MATLAB and back. (https://www.mathworks.com/matlabcentral/fileexchange/53717-core_py2matlab-convert-data-from-python-to-matlab-and-back), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Application Deployment > MATLAB Compiler SDK > Python Package Integration >
- MATLAB > External Language Interfaces > Python with MATLAB > Call Python from MATLAB >
Tags
Acknowledgements
Inspired by: Core_jsonparser: Import and Export JSON files using MATLAB
Inspired: Core_jsonparser: Import and Export JSON files using MATLAB
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.