How I can run a simulink model from Python script?
205 ビュー (過去 30 日間)
表示 古いコメント
Hi, I'm trying to write a script in Python that generate number of inputs, and use them as inputs in a Simulink model. My doubt is how to run a Simulink model from Python (I'm working in windows). Could someone help me?
Thanks
2 件のコメント
Meng Zhang
2021 年 12 月 1 日
how to run the simulnk model just for one step by using MATLAB Engine API?
採用された回答
Bo Li
2016 年 9 月 22 日
You may consider MATLAB Engine API for Python:
For example:
>>>import matlab.engine
>>>eng = matlab.engine.start_matlab()
>>>eng.sim("vdp")
5 件のコメント
Indhu Priyadharshini Govindasamy
2022 年 1 月 13 日
I tried in python like you commented before .it is working completely fine but
i want to run the simulink model in C code and Engine Api
I could find any reference for that.Could you please help me?
その他の回答 (1 件)
Meng Zhang
2021 年 12 月 1 日
how to run the simulnk model just for one step by using MATLAB Engine API?
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!