Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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, collect 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. Invoke the MATLAB functions.

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

  7. Terminate each package using its terminate() function. If you do not call this function explicitly, it is called automatically when the program exits.

Was this topic helpful?