Can I have multiple workspaces for one MATLAB instances?

6 次查看(过去 30 天)
In my Python application I often execute MATLAB code from Python via MATLAB Engine API for Python.
I have some Python objects that execute some MATLAB scripts in their constructors and some MATLAB scripts in their methods. That modifies the underlying MATLAB workspace and helps me to save object state between two calls.
But it's a bit too hard for me to give a dedicated MATLAB instance to each such object (because MATLAB instance eats about 500 Gb of memory). I want to have only one MATLAB instance and somehow switch between different workspaces in it.
Can it be somehow done?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by