matlab-call-python
Installation
SKILL.md
Call Python from MATLAB
Call Python libraries from MATLAB using modern APIs, correct environment setup, and structured error recovery.
When to Use
- Writing MATLAB code that calls Python via
py.*,pyrun, orpyrunfile - MATLAB code fails with
ModuleNotFoundError,Python is not configured, or other Python-related errors - User asks to set up Python for MATLAB or create a virtual environment
- User asks to install a Python package for use in MATLAB
When NOT to Use
- Calling MATLAB from Python (MATLAB Engine API for Python — different direction)
- Building MEX files or Python C extensions
- Pure Python development with no MATLAB involvement
- MATLAB Compiler or MATLAB Production Server deployment