I just updated my Ubuntu from 12.04 version to 15.04 (clean update, i.e., I erased my old Ubuntu 12.04 and installed the new one). I have Matlab R2013a installed in it and it used to work really fine, but now, all of a sudden, it freezes every time I try to plot anything. For example:

x = linspace(0, 10, 100); y = x;
[x, y] = meshgrid(x, y);
zx = x.^2 + y;
zy = x.*y;
quiver(x, y, zx, zy)

It freezes in such a way that I don't have access to any function. I can't use Ctrl + Alt + F2 or Ctrl + Alt + Del. The only thing that works is Alt + SysReq + REISUB, which reboots my computer.

In order to execute Matlab I have to run the command as super user in the terminal:

sudo /usr/local/MATLAB/R2013a/bin/matlab

If I don't use sudo, I get the following error message:

Error trying to start MATLAB without using sudo.

What can I do to solve this problem?

Thanks in advance,

  • FYI: Don't start matlab with sudo – A.B. Sep 8 '15 at 19:02
  • But if I don't use sudo, I am unable to start Matlab... – Gabs Sep 8 '15 at 19:06
  • sudo chmod +x /usr/local/MATLAB/R2013a/bin/matlab and you can start it without sudo – A.B. Sep 8 '15 at 19:07
  • It didn't work... I get several errors concerning Java... – Gabs Sep 8 '15 at 19:41
  • Just edited my post to include the error that I get. – Gabs Sep 8 '15 at 19:43

I also had GL issues. Matlab support team recommended I start matlab with -softwareopengl flag. Figures don't look as good this way, diagonal lines don't get smoothed so you see "steps", but no more crashes for me when I see figures.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.