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.