Instaling MATLAB R2007a on Ubuntu

One of the most prominent reason’s for which I had to stay in Windows was MATLAB. As an engineering student, I need MATLAB very often. But I didn’t find MATLAB CD/DVD for linux in the computer markets of Dhaka. I have installed VMWare Server on my Ubuntu and installed Win XP inside the virtual machine and thereby tried to use MATLAB in linux. But the performance was too poor to be useful. At last I got MATLAB R2007a Unix DVD and thought “wow, now i don’t have to stay in windows!!”. I am giving here the complete procedure of installing MATLAB R2007a Unix on Ubuntu 8.04.

  • You must have SUN JAVA installed to use MATLAB on GUI. So please install sun-java in your Ubuntu first. You can do it easily through Synaptic. Just search for “sun-java” and from the search results install the latest version.
  • I am assuming that you have Java installed and you have the ISO image of MATLAB R2007a Unix DVD. If the ISO image is in location /home/{yourname}/ directory and you want to install MATLAB in /usr/local/matlab74 directory then:

Be root
$sudo -i

Make mount directory for the ISO image and mount
$mkdir /media/iso
$modprobe loop
$mount /home/{yourname}/matlab.iso /media/iso/ -t iso9660 -o loop

Create installation directory
$mkdir /usr/local/matlab74
$ cd /usr/local/matlab74

Copy the license file into installation directory
$cp /home/{yourname}/license.dat ./

Start installing matlab
$sh /media/iso/install

Configure the necessary aspects during the GUI installation guide. Usually default values are OK
After installation, run the post installation script

$sh install_matlab

Again the default values offered are OK. Continue with pressing ‘y’
Here it is. The installation is complete. You can now run MATLAB without any trouble !! Just type in terminal [you don’t need to be root anymore..]

$cd /usr/local/matlab74/bin
$sh matlab

You can create a desktop shortcut for easy starting matlab. Create a launcher with command

matlab -desktop

  • If you have problem with matlab menubar, like the menubar disappears when you enable Compiz Fusion, do the following

$sudo -i

$gedit /usr/local/matlab74/bin/matlab

Add this line just after “#!/bin/sh”

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/

Now you should find the menubar even with Compiz Fusion enabled… 🙂


5 thoughts on “Instaling MATLAB R2007a on Ubuntu

  1. Hi
    thanks for the tutorial I’m trying to install Matlab 2009a on Ubuntu 10.10 and I’m stuck with the GUI Java thing… JDK 6 is installed and I set the Matlab environment variable to the JDK but the GUI doesn’t start… Maybe you’ve got an idea 🙂

  2. Pingback: 2010: year in review « Hafiz Imtiaz's Blog

  3. great 😀 I was unable to install matlab….every time it was showing some errors but this did it in one go….thanks a lot !!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s