From: free seek on
I have just performed a fresh install of Ubuntu Lucid 10.04 (for amd64) and Matlab 2010a on my machine and I can confirm that the matlab GUI is obnoxiously slow. It is close to impossible to use the array editor and every little task is incredibly sluggish. In particular, it takes a couple of seconds to switch the cursor from the Editor window to the Command window. It is such a shame because the Matlab GUI is awesome but brought down to this level it becomes completely useless. Any insight of what is causing this? Any suggestions on how to debug it? I also tried to run matlab with the default Ubuntu JRE with the command:
MATLAB_JAVA=/usr/lib/jvm/java-6-openjdk/jre/ matlab
and I tried to use the glnx86 version as well but it does not seem to help at all.
From: Walter Roberson on
free seek wrote:
> I have just performed a fresh install of Ubuntu Lucid 10.04 (for amd64)
> and Matlab 2010a on my machine and I can confirm that the matlab GUI is
> obnoxiously slow. It is close to impossible to use the array editor and
> every little task is incredibly sluggish. In particular, it takes a
> couple of seconds to switch the cursor from the Editor window to the
> Command window. It is such a shame because the Matlab GUI is awesome but
> brought down to this level it becomes completely useless. Any insight of
> what is causing this? Any suggestions on how to debug it? I also tried
> to run matlab with the default Ubuntu JRE with the command:
> MATLAB_JAVA=/usr/lib/jvm/java-6-openjdk/jre/ matlab
> and I tried to use the glnx86 version as well but it does not seem to
> help at all.

Ubuntu replaced the typical X client with an "accelerated" version, but
the accelerated version apparently is not completely compatible with
some of the X calls used by Matlab, and also apparently is very slow on
some of the X calls.

The Linux admin at work worked around this by creating a script to
invoke matlab that does

export LD_LIBRARY_PATH=/opt/oldX11lib:$LD_LIBRARY_PATH

before invoking matlab. Before that, the script also does,

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre
export JAVA_JVM_VERSION=1.6

/opt/oldX11lib is the directory that he installed the older X11 into.