views:

97

answers:

1

I'm trying to give a Java application the ability to change the working directory within an active session of MATLAB. Basically, the user will press a button to launch MATLAB. Then, they will be able to press other buttons that change the working directory of the active MATLAB. I've tried a few different approaches, but with no luck. I've thought about calling on MATLAB from a C standalone, but this appears to operate in a DIFFERENT MATLAB session. Doing it directly from Java seems just about impossible. Isn't there any simple way to do this?

+1  A: 

You can use the COM interface on Windows to control a MATLAB sessions though a MATLAB.Application COM object. Examples and instructions are in the doc: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f135590.html

Mike Katz