High-Performance Computing at the NIH

RSS Feed
Matlab
Matlab logo

Description

Matlab integrates mathematical computing, visualization, and a powerful language to provide a flexible environment for technical computing. The open architecture makes it easy to use MATLAB and its companion products to explore data, create algorithms, and create custom tools that provide early insights and competitive advantages.

Version

There are multiple versions of MATLAB available. An easy way of selecting the version is to use modules. To see the modules available, type

module avail matlab

To select a module, type

module load matlab/[ver]

where [ver] is the version of choice. The default version is 2012b

How to Use

Matlab Timeout Set on the Helix Systems

When your MATLAB session has been idle for 4 hours or more you will find MATLAB still open on your desktop. However, you will see the following message displayed in the Command Window:

"Your MATLAB session has timed out. All license keys have been returned."

This does not mean your MATLAB session has closed or exited. It just means the licenses in use have been returned to the license server. To resume a timed-out MATLAB session, just start using MATLAB again. If a license key is available, MATLAB checks it out automatically. Likewise, as you use the toolboxes and other products that you had checked out, MATLAB obtains license keys for these products as well. If a license key is not available, MATLAB periodically attempts to check out a license, issuing warning messages. After 10 warnings, if a license key is still not available, MATLAB will save the workspace and exit.

The number of total and free licenses at any time can be seen at the Current license status webpage.

Run the Matlab GUI Interactively

To run the MATLAB graphics interface, an X Windows connection is required. Open an X-Windows connection to helix.nih.gov, and check that it is working by typing 'xclock' at the prompt.

[user@helix ~]$ matlab &

You should see the Matlab windows as below:

MATLAB splash image

MATLAB desktop image

HINT: If you receive an error message that contains "Failure to Launch Desktop Class", cd to $HOME/.matlab and remove the directory R2007a and try again.

You must use X software to connect, otherwise you will not be able to run the Matlab GUI.

Run Matlab interactively without the GUI

It is also possible to run Matlab interactively on the command-line, without the GUI. This would be useful if you do not wish to use X-Windows.

[user@helix ~]$ matlab -nodisplay < M A T L A B > Copyright 1984-2012 The MathWorks, Inc. R2012b (8.0.0.783) 64-bit (glnxa64) August 22, 2012 To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com. >>quit [user@helix ~]$

Documentation

Matlab FAQ

Matlab Help

The Mathworks Homepage

Femlab