Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My MATLAB running on snow leopard is unbearably slow.

I have tried the UseQuartz tweak. That is:

$ cat /Applications/MATLAB_R2008a/java.opts

My start MATLAB settings are: Terminal | Desktop | StartMATLAB

What's going wrong?


I believe the UI is slow.

>> x = bench

x =

    0.2191    0.2952    0.3214    0.4910    0.9205    1.8519
share|improve this question

migrated from May 3 '11 at 8:57

This question came from our site for professional and enthusiast programmers.

What's slow? Is it the UI, calculations, plotting, 3D graphics? What does the output of x = bench give you? – Memphis May 2 '11 at 22:43
bench on the latest MBP 2011: 0.0870 0.2688 0.1920 0.3071 0.6788 0.8452 – zellus May 3 '11 at 7:03
Not sure. From what I've seen, Matlab works quicker on Unix-based OS's. Are your sure your hard drive is not dying or something? – Phonon May 5 '11 at 13:26
@Phonon -- How do I test that? – dsg May 5 '11 at 21:06
I have a dual-boot mac. Give it a very busy task that will take several seconds and time it on both OSs. that how I did it. – Phonon May 5 '11 at 21:07
up vote 2 down vote accepted

According to this article:

(1) Make a file called java.opts consisting entirely of the line:

(2) Place the java.opts file at one of the following locations depending on your MATLAB version:

  • MATLAB R2007b: /Applications/MATLAB_R2007b/java.opts
  • MATLAB R2008a: /Applications/MATLAB_R2008a/bin/maci/java.opts
  • MATLAB R2009a: /Applications/

(3) Restart MATLAB

This worked for me. I had my java.opts file in the wrong spot. Moving it to the right spot fixed the problem.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .