UGA logo RCC: Research Computing Center
 
 
Home >
 
 
RESOURCES
SERVICES
Application & Code Development
Consulting
Grantwriting Support

MatLab

Category | Version | Author | Description
Program on:altix | inQuiry | pcluster | rcluster,IOB

Category(ies): Other

Version: 7.3

Author / Distributor: The MathWorks (see http://www.mathworks.com)

Description:

Matlab is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation.


altix: not available on altix


inQuiry: not available at inQuiry


pcluster: not available on pcluster


rcluster,IOB: Running Program | Documentation | Installation | System

Running Program:

To run MatLab interactively, start the application as follows:

rcluster> matlab &

If you are planning to run MatLab interactively for more than 10 minutes, please run it on an interactive node instead of the rcluster headnode.

Matlab can also be run on the batch queue. Here are two examples of how this can be done:

1. Use a script file containing the Matlab options and commands.

Sample script file plotsin.sh with MatLab commands to plot sin(x) and save the plot in a file called aplot.ps:

#!/bin/sh
unset DISPLAY
matlab > matlab.out 2>&1 << EOF
fplot(@(x)sin(x),[-6,6])
print aplot
exit
EOF

2. Use a script file to run a MatLab M-file.

Sample script file plotsin.sh to run a MatLab M-file called plotsin.m:

#!/bin/sh
matlab -nodisplay < plotsin.m > matlab.out
exit

To submit either of the two sample files plotsin.sh to the queue:

rcluster> chmod u+x plotsin.sh
rcluster> bsub -q r1-24h -o runplot.out -e runplot.err ./plotsin.sh

The queuename r1-24h used in this example can be replaced by other one processor queuenames, and runplot.out and runplot.err are sample names for the standard output and error, respectively. Please refer to Running Jobs on rcluster for more information on how to submit batch jobs on rcluster.

Documentation:

  • Demos are available in /usr/local/matlab7.2/demos
  • Some documentation and sample files are available in /usr/local/matlab7.2/help

Installation:

  • Installed in /usr/local/bin
  • Available toolboxes: Optimization and Statistics.

System: 64-bit Linux


Back to top


 
Partnering with UGA