How to install Matlab¶
This section explains How To install Matlab R2013b and R2016b.
How to Install R2013b¶
- OS Required/suggested: Ubuntu 14.04 LTS
- Ubuntu 14.04. Using Nautilius, click on R2013b_UNIX.iso and extract to “Installs/Matlab2013b”.
- Ubuntu 14.04. Open a terminal < ctrl + alt + T>. You will need to install the JRE (Java Runtime Environment) if you don’t have it. Type
sudo apt-get install openjdk-7-jre
at the prompt and press enter. - Terminal: You will now need to backup file “libstdc++.so.6” and link to file “libstdc++.so.6.0.13”. Type in
cd ~/Installs/Matlab2013b/bin/glnxa64
and press enter. - Terminal: Type
sudo mv libstdc++.so.6 libstdc++.so.6_bu
and enter. The file should now be backed up. - Terminal: Type
sudo ln -s libstdc++.so.6.0.13 libstdc++.so.6
and press enter. The file should now be linked. - Terminal: set the matlab environment variable to call java 7. Type
export MATLAB_JAVA=”/usr/lib/jvm/java-7-openjdk-amd64/jre
and press enter. Typeecho $MATLAB_JAVA
to make sure the new path is set. - Terminal: Make sure the java is executable. Type
cd ~/Installs/Matlab2013b
and press enter. Typechmod +x sys/java/jre/glnxa64/jre/bin/java
and press enter. - Terminal: You will now need to invoke the installer. Type
sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-amd64/jre
at the prompt and press enter. - The MathWorks Installer GUI should pop up. Select “Install without using the Internet” and select “Next”.
- You will be requested to sign the “License Agreement” page. Click “Yes” and then click “Next”.
- You will be requested to fill in the file installation key for your license. The Matlab Administrator should of provided a license and file installation key. If not, make sure you get one from him/her. Type in the file installation key and press “Next”. I choose to install my license file under “~/Matlab”.
- You will then be requested for the “Installation Type”. Click on the “Typical” radio button and press “Next”.
- You will then need to specify the installation folder. I choose “/opt/Matlab/R2013b”. Press “Next”. If the folder does not exist then click “Yes” to create it.
- You will then be required to confirm your installation settings. If happy then press “Install” else press “Back” and then return to this step when happy.
- You will be informed that your installation may require additional configuration skips. This can be ignored. Click “Next”.
- You will be informed that the installation is complete. Make sure Activate Matlab is ticked and click “Next”.
- It is now time to Activate MathWorks Software. A “MathWorks Software Activation” window will pop up. Click on the “Activate manually without the internet” and press “Next”.
- Click on the “Enter the full path to your license file, including the file name:” and browse to the license file (*.lic) and click “Select”. Then press “Next”. If all goes well then you will receive a message that says “Activation is complete.”. Click “Finish”.
- Open another terminal and navigate to the “opt” folder and remember to change user and group to your username with the following command:
sudo chown <username>:<username> Matlab -R
- Terminal: Navigate to the “home” folder and remember to change user and group to your username with the following command:
sudo chown <username>:<username> .matlab -R
- It will be a good idea to create an Matlab R2013b startup script file on your Desktop with the following lines:
#!/bin/bash
cd /opt/Matlab/R2013b/bin/
./matlab
NB: Make sure the file is executable and that the nautilius documentation
navigator is set to run the script.
- Run the script and the Matlab IDE will launch. You can now select the required Matlab m files (*.m) and continue.
- In order to run the ISE-flow of the CASPER tools, please see here
How To Install R2016b¶
- OS Required/suggested: Ubuntu 14.04 LTS, Ubuntu 16.04 LTS (with tweaks), Red Hat 6.6 (Santiago).
- Ubuntu 14.04. Using Nautilius, click on “R2016b_glnxa64_dvd1.iso” and extract to “Installs/Matlab2016b”.
- Ubuntu 14.04. Open a terminal < ctrl + alt + T> and type
cd ~/Installs
and then typechmod +w Matlab2016b/ -R
. This will give all the files in the Matlab2016b folder write access. - Ubuntu 14.04. Using Nautilius, click on “R2016b_glnxa64_dvd2.iso” and extract to “Installs/Matlab2016b”.
- Open a terminal <ctrl + alt + T> and type
cd ~/Installs/Matlab2016b/
,thensudo ./install
and enter. - The MathWorks Installer GUI should pop up. Select “Use a File Installation Key” and select “Next”.
- You will be requested to sign the “License Agreement” page. Click “Yes” and then click “Next”.
- You will be requested to fill in the file installation key for your license. The Matlab Administrator should of provided a license and file installation key. If not, make sure you get one from him. Type in the file installation key and press “Next”. I choose to install my license file under “~/Matlab”.
- You will then need to specify the installation folder. I choose “/opt/Matlab/R2016b”. Press “Select” and then “Next”.
- You will then see a “Product Selection” window. Make sure that all products are ticked and select “Next”.
- You must then decide where you want the symbolic links to your Matlab scripts to be stored. I chose the default location “/usr/local/bin”.
- You will then be required to confirm your installation settings. If happy then press “Install” else press “Back” and then return to this step when happy.
- You will be informed that your installation may require additional configuration skips. This can be ignored. Click “Next”.
- You will be informed that the installation is complete. Make sure Activate Matlab is ticked and click “Next”.
- It is now time to Activate MathWorks Software. A “MathWorks Software Activation” window will pop up. Click on the “Activate manually without the internet” and press “Next”.
- Click on the “Enter the full path to your license file, including the file name:” and browse to the license file (*.lic) and click “Select”. Then press “Next”. If all goes well then you will receive a message that says “Activation is complete.”. Click “Finish”.
- Open another terminal and navigate to the “opt” folder and remember to change user and group to your username with the following command:
sudo chown <username>:<username> Matlab -R
- Terminal: Navigate to the “home” folder and remember to change user and group to your username with the following command:
sudo chown <username>:<username> .matlab -R
- It will be a good idea to create an Matlab R2016b startup script file on your Desktop with the following lines:
#!/bin/bash
cd /opt/Matlab/R2016b/bin/
./matlab
NB: Make sure the file is executable and that the nautilius documentation navigator is set to run the script.
- Run the script and the Matlab IDE will launch. You can now select the required Matlab m files (*.m) and continue.
- In order to run Matlab with the Casper tools please look at the CASPER read the docs page: https://casper-toolflow.readthedocs.io/en/latest/jasper_documentation.html.
How To Install R2018a¶
- OS Required/suggested: Ubuntu 14.04 LTS/Ubuntu 16.04 LTS.
- Ubuntu 16.04. Using Nautilius, click on “R2018a_glnxa64_dvd1.iso” and extract to “Installs/Matlab2018a”.
- Ubuntu 16.04. Open a terminal < ctrl + alt + T> and type
cd ~/Installs
and then typechmod +w Matlab2018a/ -R
. This will give all the files in the Matlab2018a folder write access. - Ubuntu 16.04. Using Nautilius, click on “R2018a_glnxa64_dvd2.iso” and extract to “Installs/Matlab2018a”.
- Open a terminal <ctrl + alt + T> and type
cd ~/Installs/Matlab2018a/
,thensudo ./install
and enter. - The MathWorks Installer GUI should pop up. Select “Use a File Installation Key” and select “Next”.
- You will be requested to sign the “License Agreement” page. Click “Yes” and then click “Next”.
- You will be requested to fill in the file installation key for your license. The Matlab Administrator should of provided a license and file installation key. If not, make sure you get one from him. Type in the file installation key and press “Next”. I choose to install my license file under “~/Matlab”.
- You will then need to specify the installation folder. I choose “/opt/Matlab/R2018a”. Press “Select” and then “Next”.
- You will then see a “Product Selection” window. Make sure that all products are ticked and select “Next”.
- You must then decide where you want the symbolic links to your Matlab scripts to be stored. I chose the default location “/usr/local/bin”.
- You will then be required to confirm your installation settings. If happy then press “Install” else press “Back” and then return to this step when happy.
- You will be informed that your installation may require additional configuration skips. This can be ignored. Click “Next”.
- You will be informed that the installation is complete. Make sure Activate Matlab is ticked and click “Next”.
- It is now time to Activate MathWorks Software. A “MathWorks Software Activation” window will pop up. Click on the “Activate manually without the internet” and press “Next”.
- Click on the “Enter the full path to your license file, including the file name:” and browse to the license file (*.lic) and click “Select”. Then press “Next”. If all goes well then you will receive a message that says “Activation is complete.”. Click “Finish”.
- Open another terminal and navigate to the “opt” folder and remember to change user and group to your username with the following command:
sudo chown <username>:<username> Matlab -R
- Terminal: Navigate to the “home” folder and remember to change user and group to your username with the following command:
sudo chown <username>:<username> .matlab -R
- It will be a good idea to create an Matlab R2016b startup script file on your Desktop with the following lines:
#!/bin/bash
cd /opt/Matlab/R2018a/bin/
./matlab
NB: Make sure the file is executable and that the nautilius documentation navigator is set to run the script.
- Run the script and the Matlab IDE will launch. You can now select the required Matlab m files (*.m) and continue.
- Install the R2018a update pack: “r2018a-update-6.tar.gz” by unpacking the tar.gz file and following the install instructions “r2018a-updates-install-instructions.pdf” for linux.
- In order to run Matlab with the Casper tools please look at the CASPER read the docs page: https://casper-toolflow.readthedocs.io/en/latest/jasper_documentation.html.