필터 지우기
필터 지우기

Command for unsharing Matlab Session

조회 수: 6 (최근 30일)
Till Temmen
Till Temmen 2022년 10월 5일
댓글: Till Temmen 2022년 10월 12일
Hello,
i'm using the Matlab Shared Session to connect Matlab to Python. The command i am using is
matlab.engine.shareEngine("matlab1");
Is there a possibility to unshare the session with a matlab command? At the moment i'm always restarting matlab to close the session, it would be great if there is a faster way.
Thank you very much for your help

채택된 답변

Gowthami
Gowthami 2022년 10월 11일
Hello,
It is my understanding that you want to stop the shared session of Matlab engine for Python.
If you exit Python with an engine still running, then Python automatically stops the engine and its MATLAB process.
I hope it helps.
  댓글 수: 5
Gowthami
Gowthami 2022년 10월 12일
Hi Till,
Yes, it is not possible to stop sharing from the opened MATLAB without closing the MATLAB session.
Till Temmen
Till Temmen 2022년 10월 12일
Thank you very much for your help and clarifications. Would be great if something like that could be added :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by