2008-01-05

Solution for Compiz + Matlab

  • * You only need to edit the matlab bin file by paste just after the "#!/bin/sh" command:
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/
  • You will find the matlab bin file on:
/path to matlab/bin/matlab
  • Now edit matlab bin file:
$ gedit /path to matlab/bin/matlab
  • The result after editing the file would be something like this:
#!/bin/sh
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/
#
# Name:
# matlab script file for invoking MATLAB
#
bla bla bla

  • Save and run Matlab ;)

11 comments:

Anonymous said...

Thanks, that fixed my 2007b installation :)

Anonymous said...

It works also for 2006b but seems only with java6. Anyway, thanks a lot!

Anonymous said...

Ahhhh Thanks worked for 2007a ...

Anonymous said...

Thanks. The trick works with 64-bit 2006b too. I had to modify the exported path.

Andrew said...

I love you.

Anonymous said...

Thanks so much!

Anonymous said...

I tried another thing that worked so fine.........
In any command window, type:
"export AWT_TOOLKIT=MToolkit"
Then start MATLAB from the same window.
I works fine
Also you can add it to your .bashrc
Enjoy.........

Anonymous said...

Thank, helped me a lot ( Matlab R2007a )

Anonymous said...

Thanks!

Anonymous said...

Saved my life!
Works fine with R2008! Thanks!

nutsy.ben said...

Does not work ....
My figures still appear in a really weird way ...
Is there anything new ?