Integrate a Python Package

To integrate a MATLAB® Compiler SDK™ Python® Package:

  1. Install the compiled Python Package.

    See Install a MATLAB Compiler SDK Python Package

  2. In consultation with the MATLAB programmer, agree on the MATLAB function signatures that comprise the services in the application.

  3. Import the compiled Python package.

    See Import Compiled Python Packages.

  4. Write the Python code to initialize the MATLAB Runtime, and load the MATLAB code.

    See Initialize the MATLAB Runtime.

  5. Create the required MATLAB data for function inputs and outputs.

    See MATLAB Arrays as Python Variables.

  6. Evaluate the MATLAB functions.

    See Evaluate a Compiled MATLAB Function or Evaluate a Compiled MATLAB Function Asynchronously.

  7. Terminate the MATLAB Runtime using the terminate() function of the generated package.

Was this topic helpful?