Simple interaction with an active MATLAB session from the outside of MATLAB

I am trying to give a Java application the ability to change the working directory in an active MATLAB session. Basically, the user will click a button to start MATLAB. Then they will be able to press other buttons that change the working directory of the active MATLAB. I tried several different approaches, but no luck. I was thinking of calling MATLAB from a standalone C system, but this seems to work in a VARIOUS MATLAB session. Doing this directly with Java seems almost impossible. Is there an easy way to do this?

+3
source share
2 answers

You can use the COM interface on Windows to manage MATLAB sessions, although the COM object is MATLAB.Application COM. Examples and instructions are provided in the document: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f135590.html

+1
source

I worked with Stephen on this project. We ended up using the Java library that I created called matlabcontrol .

0
source

Source: https://habr.com/ru/post/1728952/


All Articles