从matlabR2015a开始,支持调用python,只需在python函数或模块名称前加上.py前缀即可。从MatlabR2021b开始,支持pyrun()和pyrunfile()两种命令,可以更方便地调用python。具体使用方法见官方文档:Call Python from MATLAB- MATLAB & Simulink- MathWorks ChinaDirectly call Python functionality from MATLABhttps://ww2.mathwork