save_system command in python using matlab.engine is not working

조회 수: 1 (최근 30일)
ssingh
ssingh 2021년 7월 27일
답변: Meet 2025년 1월 8일
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:
  1. Run matlab.engine.shareEngine('engine1') in matlab terminal.
  2. 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 ?

답변 (1개)

Meet
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!!

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by