User Tools

Site Tools


software:matlab:start

This is an old revision of the document!


MATLAB

Description: MATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numerical computation.

Official Website: http://www.mathworks.com
Release Notes: http://www.mathworks.com/help/matlab/release-notes.html

Installed Version: Release 2018a
Downloadable Version: Release 2018a

York University Site-wide Licensing Program

York University has a Total Academic Headcount (TAH) license for MATLAB, Simulink, and add-on products. Faculty, researchers, and students may use these products for teaching, research, and learning. The license allows individuals to install the products on university-owned equipment, as well as personally owned computers.

For instructions on downloading the software, visit York University’s MATLAB portal.https://matlab.info.yorku.ca/

Specific EECS Licensing Information

For users who wish to continue using the EECS license server for MATLAB.

  • MATLAB licenses and toolboxes will only work from EECS subnets unless you use SSH tunnelling to connect to our license server.
  • Researchers that require MATLAB additional toolboxes for their own research should contact tech for pricing.

Products

We are licensed for the same products as the York University Site-wide Licensing Program. While MATLAB is a multi-platform product not all additional Toolboxes are available on all platforms.

For the list of products licensed, please see MATLAB Products

Installation Instructions

Before You Install

Before you can begin to install MATLAB you will need the following.

  1. MATLAB ISO/DMG file (As of R2016b the MATLAB installer is split across two ISO files for Windows and Linux)
  2. MATLAB license file
  3. File Installation Key

Note: Consider disabling virus-checking software and Internet security applications on your system for the duration of the installation process. These applications can slow down the installation process or cause it to appear unresponsive or to hang.

MATLAB ISO file Download Instructions

Via SFTP:

There are various SFTP clients for the different platforms supported by MATLAB, which can be used to download the ISO file.

  • General settings:
    • Host: indigo.eecs.yorku.ca
    • Port: 22
    • Protocol: SFTP - SSH File Transfer Protocol
    • User name: your EECS user account
    • Remote Directory: /eecs/research/download/matlab
  • Command Line (OS X/Linux):
    • sftp username@indigo.eecs.yorku.ca:/eecs/research/download/matlab/

Sample SFTP Session

sftp username@indigo.eecs.yorku.ca:/eecs/research/download/matlab/
Welcome to CentOS 7. 
 
Password:
Connected to indigo.eecs.yorku.ca.
Changing to: /eecs/research/download/matlab/
sftp> get R2018a_maci64.dmg     (macOS)
 
sftp> get R2018a_glnxa64_dvd1.iso  (Linux)
sftp> get R2018a_glnxa64_dvd2.iso  (Linux)
  • Windows (Using FileZilla)
    • Open the Site Manager (Ctrl+S) and click new site
    • Enter the following information
      • Host: indigo.eecs.yorku.ca
      • Port: 22
      • Protocol: SFTP - SSH File Transfer Protocol
      • Logon Type: Ask for Password
      • User: your EECS user account
      • Next, click the Advanced tab
        • Default Remote Directory: /eecs/research/download/matlab
        • Click Connect

via Windows Share (Samba/SMB)

If you are connected to our EECS network, you can map the MATLAB network share using the following share path.

\\pcserver.eecs.yorku.ca\research-download\matlab

MATLAB License File & File Installation Key

Installation of MATLAB requires a File Installation Key and a license file. For the sake of simplicity we have embedded the File Installation Key in the license file. Simply view the license file with any text editor to obtain the key. You can download the license file at this hyperlink Download Matlab License file and File Installation Key

Mounting an ISO file

Windows

  • Windows 7: Requires additional third party software
  • Windows 8, 8.1 and 10: Native support, mounts a ISO file without any third party software
    1. Navigate to the location where you downloaded the ISO file.
    2. Right-click on the ISO file and then select Mount to mount it.

macOS

  • Usually ISO/DMG files are opened automatically when you double click them in Finder
  • You can also mount ISO images in Mac OS X by using Disk Utility, located in the /Applications/Utilities/ directory. After you launched Disk Utility, navigate from the Disk Utility menu down to “Open Image File” and select your ISO file. The ISO should now appear mounted on the desktop.
  • Command Line:
cd ~/Desktop
hdiutil mount R2016a_maci64.iso 
or
hdiutil attach R2018a_maci64.dmg

Linux

  • Ubuntu’s Unity desktop and GNOME include an Disk Image Mounter application that can mount ISO files and similar image files graphically. To use it, right-click an .ISO file or another type of disc image, point to Open With, and select Disk Image Mounter.
  • Command Line:
  • Open a terminal window
  • Create a new directory for your ISO image.
   sudo mkdir /media/iso 
  • Now mount the ISO image
sudo mount -o loop R2018a_glnxa64_dvd1.iso /media/iso
  • When prompted to insert DVD2, un-mount DVD1 and mount DVD2
sudo umount /media/iso
sudo mount -o loop R2018a_glnxa64_dvd2.iso /media/iso
  • To unmount the file, use this command in a terminal window
sudo umount /media/iso
rmdir /media/iso

Installation Instructions

Linux / macOS / Windows

  1. Start the MATLAB Installer
    1. Windows
      1. DVD (ISO) installation — Mount DVD 1 on your system. The installer usually starts automatically. Mount DVD 2 when the installer prompts you for the second disc.
    2. Linux
      1. Note: Do not run the installation from inside the DVD/ISO root. Start the installation from a directory outside the DVD/ISO root.
      2. For example on Ubuntu
        • cd /tmp
        • /media/USERNAME/MATHWORKS_R2018A/install &
        • or generally
        • /path_to_dvd/install &
    3. macOS
      1. DVD installation — Insert/Mount DVD 1 into the DVD drive connected to your system. When the DVD icon appears on the desktop, double-click the icon to display the DVD contents, and then double-click the InstallForMacOSX icon to begin the installation.
  2. Select the Use a File Installation Key option and click Next
  3. Review the software license agreement and, if you agree with the terms, select Yes and click Next.
  4. Select the I have the File Installation Key for my license option, enter the File Installation Key, and click Next.
  5. Specify the Installation Folder
    1. Specify the name of the folder where you want to install MathWorks products. Accept the default installation folder, or click Browse to select a different one. If the folder does not exist, the installer creates it. When specifying a folder name, you can use any alphanumeric character and some special characters, such as underscores. If you make a mistake while entering a folder name and want to start over, click Restore Default Folder. After making your selection, click Next.
  6. Specify Products to Install
    1. Specify which products you want to install in the Product Selection dialog box. This dialog box lists all the products associated with the license you selected or with the Activation Key you specified. In the dialog box, all the products are preselected for installation. If you do not want to install a particular product, clear the check box next to its name.
    2. After selecting the products you want to install, click Next to continue with the installation.
  7. Specify Installation Options
    1. Windows Systems
      1. On Windows, the Installation Options dialog box lets you choose whether to put shortcuts for starting MATLAB in the Start menu and on the desktop.
      2. For Windows® 10, you can choose either Desktop or All apps in the Start menu.
      3. After selecting installation options, click Next to proceed with the installation.
    2. Linux Systems
      1. On Linux systems, you can specify whether you want to create symbolic links to the matlab and mex scripts. Specify a folder to which you have write access and that is common to all your user's paths, such as /usr/local/bin .
      2. After selecting installation options, click Next to proceed with the installation.
  8. Confirm Your Choices
    1. Before it begins installing the software on your hard disk, the installer displays a summary of your installation choices. To change a setting, click Back. To proceed with the installation, click Install.

If you have any problems accessing any toolboxes or you encounter any licensing issues make sure the network.lic file which is located in /path/to/matlab/licenses (replace with the path where you installed MATLAB) contains both the SERVER and the USE_SERVER lines from the downloaded license file.

Running MATLAB on your computer when not connected to a local (wired) EECS network

Linux / MacOS X

  • Create a new MATLAB license file called localhost.lic in in your home directory. with the following contents.
  • Note: With MATLAB R2017A and newer, if your localhost.lic file has localhost on the SERVER line, it should be replaced with IP number 127.0.0.1. Failure to make this change will result in a license error.
SERVER 127.0.0.1 000102030405 1726
USE_SERVER
  • Use the following shell script connect-matlab-license-server.sh to establish an SSH tunnel connection to the departmental licence server. Save the file in your home directory. Be sure to replace EECS-USERNAME with your EECS username
#!/bin/sh
echo Forwarding local ports 1726:1727 to license server
 
ssh -2 -N -x -L 1726:licenseserv.eecs.yorku.ca:1726  \
-L 1727:licenseserv.eecs.yorku.ca:1727 EECS-USERNAME@indigo.eecs.yorku.ca
  • Run the script from the command line to create a SSH tunnel
chmod 755 connect-matlab-license-server.sh
./connect-matlab-license-server.sh

When you run the script you will be prompt for a password, enter your EECS account password. You are now connected to the EECS license server.

  • Start MATLAB, using our SSH tunnel.
MacOS X
/Applications/MATLAB_R2018a.app/bin/matlab -c ~/localhost.lic 
Linux
matlab -c ~/localhost.lic 

Windows

  • Create new network license files:
  • License paths for MATLAB:
C:\Program Files\MATLAB\<release>\licenses\network1.lic 
C:\Program Files\MATLAB\<release>\licenses\network2.lic

Note: You can rename the existing network.lic to network1.lic

network1.lic contents:

SERVER licenseserv.eecs.yorku.ca 000102030405 1726 
USE_SERVER 

network2.lic contents:

SERVER 127.0.0.1 000102030405 1726 
USE_SERVER 
  • Launch a text editor (Not MSWord) and save the following content into a file called connect-matlab-license-server.cmd on your desktop. Be sure to replace EECS-USERNAME with your EECS username
@echo off
echo Forwarding local ports 1726:1727 to license server
echo Close this Command Prompt window to terminate session!
 
if exist "%ProgramFiles(x86)%\PuTTY\plink.exe" set PLINK="%ProgramFiles(x86)%\PuTTY\plink.exe"
if exist "%ProgramFiles%\PuTTY\plink.exe" set  PLINK="%ProgramFiles%\PuTTY\plink.exe"    
 
 
%PLINK% -2 -N -x -L 1726:licenseserv.eecs.yorku.ca:1726 -L 1727:licenseserv.eecs.yorku.ca:1727 EECS-USERNAME@indigo.eecs.yorku.ca
  • Use batch script connect-matlab-license-server.cmd you just saved to establish a SSH tunnel connection to the departmental licence server.


PuTTY can be downloaded from http://www.chiark.greenend.org.uk/~sgtatham/putty .

  • Before you start MATLAB, double click on the connect-matlab-license-server.cmd icon on the desktop. The first time you connect, you will be prompted to save the server key into your local cache. Enter your password when prompted.
  • Note: With this setup you will experience a delay when you launch MATLAB if you are not connected to EECS's wired network.
software/matlab/start.1536162458.txt.gz · Last modified: 2018/09/05 11:47 by paulg