MATLAB installation

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.

  1. Dependencies: Ensure you have MATLAB R2019b or later.

  2. Python integration: Follow the instructions here to set up Python integration.

  3. 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...