MATLAB Answers


Graphics glitch Ubuntu 17.04

Asked by sigurdjs
on 20 Sep 2017
Latest activity Commented on by bennibenjamin on 14 Jul 2018
When viewing a large vector/variable in the workspace the output looks like this. This problem have been consistent on multiple machines running both Ubuntu 16.04 and 17.04, with matlab R2016A, B and 2017A. I have tried the answers from here without any luck (it seemed I was already using a properitary driver). Switching between OpenGL software, hardware and hardwarebasic didn't solve the problem.
Anyone with a solution out there?


Setting the JVM to oracle JRE solved the problem for me. Other versions did not work.
export MATLAB_JAVA=/usr/lib/jvm/java-8-oracle/jre
If you are launching from terminal, add the line to your bashrc, if you have a matlab.desktop file, add sh -c "export MATLAB_JAVA=/usr/lib/jvm/java-8-oracle/jre; matlab -desktop;" in the exec field.
Same issue on Ubuntu 16.04 with R2016b. Your solution works for me. Thanks a lot!
The only difference is that I am using Java openjdk from the offical ubuntu repositories instead of Java-8-oracle.
I did the following:
sudo apt-get install default-jdk
Second, I added the line
Exec=sh -c "export MATLAB_JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre; /usr/local/MATLAB/R2016b/bin/matlab -desktop;"
to my MATLAB.desktop file.

Sign in to comment.

0 Answers