Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 845 Bytes

File metadata and controls

14 lines (12 loc) · 845 Bytes

Matlab to Python external language interface

Python on Matlab requires Matlab R2022b and newer. stdlib.has_python checks that the Python version set by pyenv() is compatible with the Matlab release. If there is a problem with Python on a particular Matlab install, stdlib.has_python(false) disables the Python backend for that Matlab session.

As with Java, with Prism emulation on Windows, the Python.exe must match the emulated CPU architecture. For example, if the CPU is ARM64 but Matlab is x86_64, then download the standalone Python 64-bit (non-ARM64) installer and extract. Then use pyenv(Version='/path/to/python.exe') to set the Python x86_64 version for Matlab x86_64 under Prism emulation.