How to prevent opening a new instance of MATLAB when multiple times run a Java program -


i'm calling matlab program eclipse java interface. have used matlabcontrol it. when run java program multiple time, every time opens new instance of matlab, , makes computation slower.

is possible can prevent opening new instances of matlab? if possible, how can this?

if have opened terminal of matlab, possible computation can use terminal, instead of opening new instance of matlab?

any appreciable.

the matlabcontrol can not connect open instance of matlab, can create new one.

to prevent multiple matlab instances being opened, can use proxy.exit() instead of proxy.disconnect() close matlab when closing application.

to further use single instance of matlab across multiple instances of java program, see different possibilities no one.

  1. matlab comes it's own jvm , start java applications matlab console using. officially documented, can call java functions matlab, other way round possible well. please matlab uses it's own jvm might outdated.
  2. implement server started 1 , exposes matlabcontrol functionality.
  3. use matlab automation server instances can shared. .net can used java.

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -