Command for unsharing Matlab Session
11 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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.
For more information, you may refer to this MATLAB documentation - https://www.mathworks.com/help/matlab/matlab_external/start-the-matlab-engine-for-python.html#buract9
I hope it helps.
5 件のコメント
Gowthami
2022 年 10 月 12 日
Hi Till,
Yes, it is not possible to stop sharing from the opened MATLAB without closing the MATLAB session.
その他の回答 (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!