Difference between revisions of "Software:matlab"

From CAC Wiki
Jump to: navigation, search
Line 1: Line 1:
MATLAB® is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology.  
+
[http://www.mathworks.com/products/matlab/ MATLAB] is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology.  
  
Previously, using MATLAB required a user-supplied license (and a lot of effort) to run on our systems. CAC now has an academic license for MATLAB provided by Queen's University.
+
Previously, using MATLAB required a user-supplied license (and a lot of effort) to run on our systems. CAC now has an academic license for MATLAB provided by Queen's University. For a personal MATLAB license through Queen's University, see [http://www.queensu.ca/its/software/enterprise-licenced-software/matlab the ITS software page].
  
 
* '''Version''': R2017a
 
* '''Version''': R2017a
* '''Related link''': For more information go to the [http://www.mathworks.com/products/matlab/ MATLAB web site]
+
* '''List of installed toolboxes and products''': [https://www.mathworks.com/academia/tah-portal/queens-university-products.html?s_tid=tah_po_list_queensu]
 
* '''Statement''': [http://cac.queensu.ca/wp-content/files/cac-matlab-statement.pdf Necessary for accessing the software]
 
* '''Statement''': [http://cac.queensu.ca/wp-content/files/cac-matlab-statement.pdf Necessary for accessing the software]
  

Revision as of 15:14, 9 May 2017

MATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology.

Previously, using MATLAB required a user-supplied license (and a lot of effort) to run on our systems. CAC now has an academic license for MATLAB provided by Queen's University. For a personal MATLAB license through Queen's University, see the ITS software page.

Getting access

Send a signed MATLAB usage statement form to cac.admin@queensu.ca. This will add you to the matlab group that allows access to the software. To check if you have been authorized access, type groups while logged on to the system. If matlab appears in the output, you are ready to go!

Running MATLAB

To load MATLAB to your current environment on the SW cluster, use the command use matlab (module load matlab on the Frontenac cluster). If your SSH client supports X-forwarding (and you have logged in using X-forwarding using ssh -X, you can bring up the MATLAB user interface with the command matlab.

To run MATLAB non-interactively (such as when running a script or submitting a job to the cluster), use the command matlab -nodisplay < name_of_your_script.m

An example of a MATLAB job is shown below:

#!/bin/bash
#$ -q abaqus.q
#$ -cwd
#$ -V

# replace "X" with the number of processors requested
#$ -pe shm.pe X
# replace "Y" with the amount of memory requested (in GB)
#$ -l mf=YG

use matlab
matlab -nodisplay < name_of_matlab_script.m