MATLAB installation
Main authors: Fabrice Le Bars, Simon Rohou
Since 2019, MATLAB allows you to import Python packages into its environment. Codac offers a Python package dedicated to MATLAB, with the necessary adaptations to run in this environment (for example: indices starting at 1
, alternatives to unsupported &
and |
operations, etc.). This Python package dedicated to MATLAB is called codac4matlab
. See the related PyPI page.
Dependencies: Ensure you have MATLAB R2019b or later.
Python integration: Follow the instructions here to set up Python integration.
Install the Python package:
pip install codac4matlab --pre
Once Codac is installed, you can use it in your MATLAB scripts using the following import command:
import py.codac4matlab.*
% Your code...