Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My MATLAB running on snow leopard is unbearably slow.

I have tried the UseQuartz tweak. That is:

$ cat /Applications/MATLAB_R2008a/java.opts 
-Dapple.awt.graphics.UseQuartz=true

My start MATLAB settings are: Terminal | Desktop | StartMATLAB

What's going wrong?

EDIT

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 stackoverflow.com 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
add comment

1 Answer

up vote 2 down vote accepted

According to this article:

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

-Dapple.awt.graphics.UseQuartz=true

(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/MATLAB_R2009a.app/java.opts

(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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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