Saturday, May 10, 2008

Installing Matlab on Linux

Unfortunately, Matlab is not free!! and i currently only have Matlab 7 R14 student version. In any case we'll install Matlab on linux..

step 1: insert the CD into the CD-ROM
step 2: go to /media/cdrom (that is in ubuntu)
step 3: sudo ./install_unix.sh
this will run a "nice" installer, it'll prompt you for a root directory for matlab files. If you keep your /home partition separate from the / partition then install matlab somewhere in /home so you don't have to install it every time you feel like getting a new linux version, otherwise /usr/local/matlab sounds like a good choice.
The script will also ask you if you want to create symlinks in /usr/local/bin or whatever directory in the $PATH, it is a good idea to say 'y' so that you don't have to put the full path name every time you feel like Matlabing :)
step 4: install gawk so Matlab will hopefully work, and you also should have java installed preferably java-sun, not the gcj; sudo apt-get install gawk
step 5: go to where ever you installed matalb, say /usr/local/matlab and enter the bin directory /usr/local/matlab/bin and run ./matlab this will ask you for the serial number, enter your serial number and enjoy Matlabing for the rest of the night!!
* Notice that a "student license" is only good for one computer :(

Have fun!

No comments: