save_system command in python using matlab.engine is not working
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to run save system command using python to save simulink model which already open. currently, I am using matlab 2019b. I have done below steps:
- Run matlab.engine.shareEngine('engine1') in matlab terminal.
- Run the below python script:
import matlab.engine
names = matlab.engine.find_matlab()
eng = matlab.engine.connect_matlab(names[0])
eng.save_system
Expectation is to save the already open simulink model but nothing is happening, even not getting any error. could you please provide some suggestion, is there something wrong ?
0 件のコメント
回答 (1 件)
Meet
2025 年 1 月 8 日
Hi,
I was facing a similar issue in MATLAB R2019b, upgrading MATLAB to the latest version helped me resolve the issue.
I hope this helps you too!!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Call MATLAB from Python についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!