Tuesday 30 September 2014

HOW to install MATLAB 2012 on UBUNTU 14.04 LTS

MATLAB.........., the life of engineers of almost all branches.
  1. Have you ever tried to install matlab on a PC running linux OS?
  2. Have you ever faced any problems while installation?
If your answer is "YES" this post is meant for you. Here you can find the step-by-step instructions to successfully install MATLAB on your linux platform.

Prerequisite

  1. Genuine copy of matlab for UNIX platform
  2. PC running LINUX Operating system and java installed on it.
note : Java should be installed on your PC before starting MATLAB installation. It is a must.
Anyway I'm going to install in UBUNTU 14.04 LTS and OpenJDK java 7 Runtime installed

Procedure

  • Copy all files in the folder to the directory named matlab in your home directory as shown below
  • Open a terminal window and navigate to the directory named 'matlab'.
    To do so enter the following command without quotation.

    " cd matlab "
  • Now we need to change the permission of the installation file, so enter

    " sudo chmod +x install "
  • Now start installation by the following command

    " sudo ./install "
  • Now you may see an error as shown below

    Preparing installation files ...
    Installing ...
    ./install: 1: eval: /tmp/mathworks_5617/sys/java/jre/glnxa64/jre/bin/java: Permission denied
    Finished
  • But don't worry, we will fix it. Now we have to navigate to the 'bin' directory. So type

    " cd sys/java/jre/glnxa64/jre/bin "
  • Now we need to add a permission to the file named 'java' so enter

    " sudo chmod +x java "
  • Now go back to the matlab directory

    " cd ~/matlab "
  • Now let's try to install it again.

    " sudo ./install "
  • Now you will get a dialogue box, select without internet option & press next


  • Enter the installation key

 

  • Accept the license agreement & press next


  • Choose custom installation

 
  •  Change installation folder ( ONLY ) if you want


  •  Allow system to create the installation folder. Click 'Yes'


 
  •  Select the products you want to install on your computer

 
  •  Confirm your installation, press install

  •  Now go, have a cup of tea and come back




  • Now installation is complete, But the matlab is not yet activated, To activate it we need to launch the application. To launch it, we need to navigate to the installation folder. Type in terminal

    " cd /usr/local/MATLAB/R2012a/bin "
  • Now launch the matlab using

    " sudo ./matlab "
  • You may get some errors, but dont worry, You will get your activation window. Select activate without internet & press next


  •  In the next dialog box press the button 'Browse', select the license file and press next
  • Now the matlab is activated. Press 'finish'


  •  But You will not have a launcher icon in your dash, or menu. So to launch it,each time, you have to navigate to the bin folder and type "sudo ./matlab", which is not fair.

Creating shortcut to matlab

  •  Now to make this easy, open fresh terminal

       " gedit matalb.sh "
  • Copy and paste the following to the file

        #!/bin/bash
        clear
        cd /usr/local/MATLAB/R2012a/bin
        echo "



                Welcome to the world of matrices........



        ";
        sudo ./matlab
  • Save and exit
  • now type

       " sudo chmod +x matlab.sh "
  • Everything has done.

    From now onwards, to launch the matlab, just open a terminal window and enter " ./matlab.sh "
    It will launch the great MATLAB



EnJoY................   ;)

4 comments:

  1. Where i can download MATLAB R2012a for 32bit ubuntu

    ReplyDelete
  2. R u kidding me, I AM ANNOYED to read tutorials without links with download!!!

    ReplyDelete
  3. R u kidding me, I AM ANNOYED to read tutorials without links with download!!!

    ReplyDelete