Main Content

Integrate Python Code with Simulink

Implement algorithms with Python code in Simulink®

Simulink allows you to implement algorithms designed using Python code. You can implement Python modules in Simulink using the MATLAB Function block or the MATLAB System block. For implementation of simple algorithms, use the MATLAB Function block. For algorithms that require handling of state dynamics, streaming data, and additional block customizations, use the MATLAB System block. For more information on using Python in MATLAB, see Call Python from MATLAB.

Topics