You've come to the right place if you wonder how to append your Simulink model with C/C++ and/or Python code. Exactly such a capability is demonstrated here. A code for the PI controller with clamping is embedded into the Simulink model using four different approaches: S-Function written in m-code, MATLAB Function written in m-code, S-function written in C/C++ and MATLAB Function that invokes the external Python interpreter to run code written in Python. Enjoy!
引用格式
Bartlomiej Ufnalski (2026). PI controller code in C and Python (https://ww2.mathworks.cn/matlabcentral/fileexchange/75272-pi-controller-code-in-c-and-python), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2019b
兼容任何版本
平台兼容性
Windows macOS Linux标签
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0 |