How can I use an already running interactive MATLAB session as the computation engine for a MATLAB Engine application? I'm quite certain that I read that this was possible on Windows, if the interactive session was started in a special way. But I am having a hard time finding it in the documentation.
Any pointers would be most appreciated.
Clarification: in other words, I want to share the workspace between an interactive MATLAB session (full GUI) and an Engine application's MATLAB.
I think you need to start MATLAB with the -automation flag from a command window to start it up as a COM Server. Not sure whether you can also use this as an interactive session also though.
I found a solution for this. From the already running MATLAB session evaluate the command
Start the Engine application afterwards and it'll share the workspace with the already running MATLAB. The full convenient GUI is available.
Note: this is a Windows-only feature.