1 Dec 2010
matlabcontrol is a Java API that allows for controlling and interacting with both local and remote MATLAB sessions. Local sessions are those in which the Java program has been launched from inside MATLAB. Remote sessions are those in which the Java program has been launched independently and then the Java program launches MATLAB.
This API relies upon the Java MATLAB Interface distributed with all recent copies of MATLAB. As this interface is entirely undocumented there is no guarantee matlabcontrol will work with all versions of MATLAB and operating systems. See here for specifics on known compatibility.
A simple walkthrough has been created to explain how to use matlabcontrol with remote sessions. Controlling a local session is quite similar. Please consult the javadocs and FAQ for more information regarding matlabcontrol.