Thursday, December 3, 2009

Install Matlab 2009Ra on Ubuntu OS

1.Make a installation directory: sudo mkdir /opt/matlab
2.Mount iso file to the directory: sudo mount -o loop /home/Matlab2009a.iso /mnt/
3.Change working directory to that matlab mounted, install: sudo ./install
4.If the MATLAB Desktop show the error message similar to the following ?The desktop configuration was not saved successfully .......?:
sudo chown $username$ /home/$username$/.matlab/R2009a/matlab.prf
or
sudo chown -R username:username ~/.matlab

5.Create A MATLAB Launcher
Get a icon:
sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png
Get the launcher file:
sudo wget 'https://help.ubuntu.com/community/MATLAB?action=AttachFile&do=get&target=matlab.desktop' -O /usr/share/applications/matlab.desktop
Then you will see a icon in the menu/programming/MATLAB R2009a,click it, if it not work:
sudo gedit /usr/share/applications/matlab.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
#Name[zh_CN]=Matlab R2009a
#Comment[zh_CN]=MathWorks Matlab R2009a
#Name=MATLAB R2009a
#Comment=Start MATLAB - The Language of Technical Computing
Name=Matlab R2009a
Comment=MathWorks Matlab R2009a
Exec=/opt/matlab/bin/matlab -desktop #matlab run directory and command
#Exec=matlab -desktop
Terminal=true #Matlab need to be launched in terminal
Type=Application
Icon=/usr/share/icons/matlab.png
Categories=Development;
6.The chinese supporting is related to java.

No comments: