Installing Matlab using the iso

Matlab Logo
Matlab Logo

Installing Matlab on a Linux installation requires some measures to be taken from the user side. It is not that easy as it is on Windows. You can’t just go on and click on the installation exe fill in the details and you are done. It’s not the case with Linux. As I use Ubuntu I would go on here explaining how to install it on ubuntu.

I got my version of Matlab as an iso image. So obviously that is the way I am going to explain how to do it.

First of all do not make the mistake of extracting the iso file and then trying to run the installation from there. It simply won’t work. So DO NOT EXTRACT the iso file. Here are the steps for the installation of Matlab using the iso.

  1. You need to mount the iso file into a specific folder on your PC. I used the folder named ‘matlab’ in the location ‘/home/ishan/ .
  2. Then mount the iso file using the mount command. I mounted the iso file (R2012b_UNIX.iso) stored in ‘/media/Treasure/Setup/matlab/linux‘ to a folder ‘/home/ishan/matlab‘ like this :” sudo mount -o loop /media/Treasure/Setup/matlab/linux/R2012b_UNIX.iso /home/ishan/matlab “. As it is obvious the first location is the absolute path of the iso file and the second location is the path where it is to be mounted.
  3. Change to the newly mounted directory and run the installation. Do it like this : “cd /home/ishan/matlab ” the run ” ./install ” (notice the dot here in ./).

    installation commands
    installation commands
  4. You will see the mounted folder like this.

    Matlab iso mounted
    Matlab iso mounted
  5. Then you will find the installation prompt. Chose not to use the internet for installation.

    install without using the internet
    without internet
  6. Then agree to the License Agreement. And then chose to provide File Installation key, and type in the key that you received when you ordered the product.

    file installation key
    file installation key
  7. Chose custom in the installation type as you probably don’t wish to use all the toolboxes provided by Matlab.
  8. Then you have to provide the full installation path location. I chose it to be ‘/home/ishan/matlab_installed‘. You can chose whatever you want.

    instllation location
    installation location
  9. Then select the products you wish to install. Some of them are mandatory, some are mandatory to run others. Your best bet would be hit and trial. Just select the ones you need and click next. It will then prompt you about any other toolboxes you need to run the ones you have selected.

    product selection
    product selection
  10. Then you have to provide the location to your keyfile. This is the installation key file you were given when you acquired Matlab.

    key file location
    key file location
  11. Here at this point you will be asked whether to make symbolic links to Matlab scripts. It’s your choice whether to create them or not. If you create them you will be having a shortcut on the desktop and an easy command to open Matlab. But if you do not; you have to be stuck like me making the script yourself.

    Symbolic links
    Symbolic links
  12. Now you will finally be having the installation process to begin. Up until here it was all about providing the information about where to install, Matlab what are your installation key,file … etc.

    installation begins
    installation begins
  13. Now it’s time to put your feet up and let the installer do it’s work.
  14. You may think that this is the end of it; but you are wrong Matlab doesn’t have a compiler inside it, you have to provide a compiler to it so that it can compile your programs. The links are given in the screen that follows.

    compilers needed
    compilers needed
  15. Now you should check out the required compilers and install them. But if you do programming even a little bit, it’s a fair bet that you are on the safe side and have the necessary compilers already on your PC. Here are the supported compiler list for Matlab and for Simulink. Both the links lead to the same page where the information for compilers needed for Matlab and for Simulink are available. I really can’t fathom why they put up with two links , when they could have done the same with only one link.
  16. Moving forward, you will see this screen conforming the successful installation of Matlab.

    Installation Finished
    Installation Finished
  17. Now since I have’t setup the symbolic link I have to open Matlab like this. I have to open a terminal and then run these two commands. I am already in my home folder every time I open terminal so I am using just the folder, or else I can use the absolute path too. ” cd matlab_installed ” and then I have to run ” ./matlab “.

    Starting Matlab
    Starting Matlab
  18. And this is it, now you are successfully running Matlab on your Linux installation. Now go wash your face and have something to eat before you sit and dive into programming with Matlab. Just a warning, DO NOT CLOSE THE TERMINAL you used to open the Matlab, because as soon as you close the terminal it will crash Matlab.

Now what I did after here is that I restarted my PC removed the folder “matlab” and created a file named matlab with this text in it.

cd matlab_installed

./matlab

And then set the executable rights to the file. This enables me to run Matlab just by typing ‘./matlab‘ from my terminal. and it pretty well mimics what symbolic link would have done for me.

Have a nice day with matlab. 🙂

2 thoughts on “Installing Matlab using the iso

  1. You have been extremely helpful! Thank you!

    I’d point out that you created a separate directory to install matlab while the default system directory is /usr/local/MATLAB/[version]. I would prefer using the default system directory but when I installed it wouldn’t let me because that needs root privileges. So it made sense to create a separate directory like you did. But then I couldn’t enable the scripts link either so I had to figure out a way to install it as root, which turns out to be very simple! When executing the ./install command on terminal, just put gksu in front and that would install it as root and create the default directories as needed, both for installation and linking scripts:

    $ gksu ./install

    Hope it will help somebody! And thank you so much again!

Please put in your words.

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Connecting to %s