Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 36 million developers.Sign up
Improvements and bug fixes from the 4.0.0 release, includes:
- When running inside of MATLAB, it is now possible to call from MATLAB's Event Dispatch Thread (the thread used by Swing and AWT).
matlabcontrol.extensions.CallbackMatlabProxyhas been deprecated; it previously existed as a workaround for the limitation in being unable to use the proxy on MATLAB's Event Dispatch Thread.
matlabcontrol.extensions.MatlabProxyLoggerhas been deprecated and replaced with
MatlabProxywhich makes it easy to wrap a
MatlabProxyinstance in a
LoggingMatlabProxyto aid in debugging.
- Fixes a bug preventing arrays with imaginary values from being retrieved using
- Fixes a bug where eval could occur not in base workspace.
- Threads created by matlabcontrol have more descriptive names.
- Improved exception messages.
- Various improvements to documentation.
This release is full backwards compatible with 4.0.0.
A major overhaul of matlabcontrol, it includes the following:
- Dramatically improved reliability, with a complete rewrite of the MATLAB interaction logic
- Transparent unification of control from inside MATLAB and outside MATLAB
- Unconditionally thread-safe
- Highly configurable MATLAB settings, including running hidden
- Ability to reconnect to a previously controlled session
- Can disconnect from a MATLAB session without exiting MATLAB
- Detailed documentation which includes how types are converted between MATLAB and Java
- Numeric array conversion between MATLAB and Java arrays
- Non-interference with any other Remote Method Invocation uses in the application (when running outside MATLAB)
- Transfer non-JRE classes between MATLAB and the Java application (when running outside MATLAB)
- Fixes bugs preventing a Java application from terminating properly (when running outside MATLAB)
For those coming from v3, here are some important changes to note:
- There is no longer a distinction between local and remote control class-wise. There are times when the phrases running inside MATLAB and running outside MATLAB are used. Running inside MATLAB refers to what was previously called local control, while running outside MATLAB refers to what was previous called remote control. In all cases,
MatlabProxyis the class which communicates with MATLAB, although in this version there are a number of classes which can wrap around a proxy.
- Many of
MatlabProxy's core methods have changed their signatures.
exit()remain the same.
returningFeval(...)now take in their function arguments using varargs which makes it easy to call a MATLAB function with any number of arguments.
Objectwith the length of the array equal to the number of arguments to be returned. The overloaded version of
returningFeval(...)that did not require specifying the number of return arguments has been removed. Additionally,
setEchoEval(...)has been removed.
MatlabProxyFactorycan still have the location of MATLAB and the proxy creation timeout specified but it is instead done using an instance of
MatlabProxyFactoryOptions. The default timeout for getting a proxy is now 180 seconds which is increased from the previous 60 second timeout.
- When running inside MATLAB, a
MatlabProxymay not be called from the Event Dispatch Thread (EDT) used by AWT and Swing. While previous versions allowed this, it often lead to MATLAB locking up. A proxy may be used indirectly on the EDT by using a
MatlabConnectionListenerno longer exists. When requesting a proxy via the factory's
requestProxy(...)method you provide a callback. Each proxy instance can have
- Requesting a proxy via
requestProxy(...)now returns a
Requestobject instead of the proxy's identifier. The identifier can be retrieved from the request. A proxy's identifier is no longer a
String, it is now an
- There is nothing like the deprecated
Note that the 3.1.0 release was the first one for which a release branch was created. As such the entire release history for the 3.x series is listed below.
- Improves reliability and documentation. Fixes issue with incorrectly determining matlabcontrol's location when loaded by custom class loaders.
- Fixes issues with Windows paths being determined incorrectly.
- Introduces ability to control MATLAB from inside MATLAB. Package renamed from matlab to matlabcontrol. Adds Windows compatibility.