Send value of a variable from Python to MATLAB/Simulink

How to send the value of a python variable to MATLAB/Simulink in real time, or failing that, every certain time interval?
In summary, the output of python would be an input from matlab

回答(1 个)

Hi,
From my understanding you are trying to take an output value of a python script and use it in MATLAB.
The following documentation would help you achieve that.
You can also do the vice-versa of it i.e, calling MATLAB from python. The below would be helping you.

类别

帮助中心File Exchange 中查找有关 Call Python from MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by