linkstatic12 / matlabcontrol

Automatically exported from code.google.com/p/matlabcontrol
0 stars 0 forks source link

Matlab reopens everytime I run java code #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0

What version of MATLAB are you using? R2011b

What operating system are you using? Windows 8.1

Are you using matlabcontrol from inside MATLAB or outside MATLAB? outside MATLAB

What steps will reproduce the problem?
1. Run the demo java code
2.the matlab opens
3. run again the demo java code and a new matlab opens

What did you expect to happen? What happened instead?

I expect to open Matlab only one time but according to comments here, changing 
the code bellow would fix the problem:

MatlabProxyFactoryOptions options = new 
MatlabProxyFactoryOptions.Builder().setUsePreviouslyControlledSession(true).buil
d(); 

I changed but when java is run, a new matlab window is opened.

If there was a stack trace, please copy it here.

Please provide any additional information below.

Original issue reported on code.google.com by andre.nu...@gmail.com on 17 Nov 2014 at 6:07