MATLAB

From Cheaha
Revision as of 22:06, 9 February 2011 by Jpr@uab.edu (talk | contribs) (→‎MATLAB on Cheaha: Offset the recommended users paragraph for less dense info presentation)
Jump to navigation Jump to search


Attention: Research Computing Documentation has Moved
https://docs.rc.uab.edu/


Please use the new documentation url https://docs.rc.uab.edu/ for all Research Computing documentation needs.


As a result of this move, we have deprecated use of this wiki for documentation. We are providing read-only access to the content to facilitate migration of bookmarks and to serve as an historical record. All content updates should be made at the new documentation site. The original wiki will not receive further updates.

Thank you,

The Research Computing Team

MATLAB (matrix laboratory) is a numerical computing environment and fourth-generation programming language. Developed by Mathworks, MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, and Fortran. An additional package, Simulink, adds graphical multi-domain simulation and Model-Based Design for dynamic and embedded systems.

MATLAB can be used on personal computers and powerful server systems, including the Cheaha compute cluster. With the addition of the Parallel Computing Toolbox, the language can be extended with parallel implementations for common computational functions, including for-loop unrolling. Additionally this toolbox supports offloading computationally intensive workloads to Cheaha the campus compute cluster.

In January 2011, UAB acquired a site license for MATLAB that allows faculty, staff, post-docs, and graduate students to use MATLAB, Simulink, and 42 toolboxes (including the parallel toolbox) for research activities on campus and personal systems. Additionally, MATLAB is available to students on campus computer systems.

Using MATLAB

Using Mathworks software available under the UAB campus license on your computer involves three steps: the download and install steps common to all software packages and an authorization step that grants you the rights to use the software under the campus agreement. While straight forward, there a several authorization scenarios designed to support a variety of user communities. These scenarios are often daunting to navigate, especially for those new to MATLAB and unfamiliar with the variety of environments in which MATLAB can operate.

Installation Scenarios

In an effort to simplify the software installation and get you working with MATLAB as quickly as possible, we have developed three install scenarios to help you decide the best installation for your needs. Most on-campus users are encouraged to use the first option unless there are special circumstances.

  1. Simplified MATLAB Install - This is the recommended install when MATLAB will be used on computers that remain connected to the campus network. This installation still requires MATLAB to be downloaded and installed, but provides a simple activation process that amounts to adding a static 2-line file after the software is installed your computer. This option is highly recommend.
  2. Matlab Designated Computer Install - This is the recommended install for mobile computing systems that may not be connected to any network when MATLAB is being used. This install type authorizes an individual computer to run MATLAB, allowing MATLAB to run regardless of where the computer is located.
  3. Matlab Network Concurrent User Install - This installation is only recommended for system administrators who already manage a lab or departmental installation of MATLAB and who would like to continue to provide this service for their user community. This install type may also be practical if there are special additional license needs that will apply multiply computers running MATLAB. At present, all MATLAB toolboxes actively used at UAB are covered under the UAB TAH license.

Downloading Mathworks Software

In order to install Mathworks software on your computer, you must install download it from the Mathworks web site. This requires each user installing the software to establish a free account at Mathworks using your UAB-assigned @uab.edu email address. After this account is established, you must associate your account the UAB site license and request permission to download the software.

Steps to download MATLAB:

  1. Create an account at the Mathworks site using your campus @uab.edu email address
  2. Associate your account with the UAB Mathworks site license
  3. Requesting download rights from a UAB Mathworks site license administrator

These steps are common to all install scenarios and are detailed in Downloading and Installing MATLAB.

We are working to simplify these steps and will update this documentation as improvements are introduced.

MATLAB on Cheaha

MATLAB is pre-installed for user accounts on the Cheaha research computing system. For information on using MATLAB from a command-line shell environment please see MatLab CLI.

This environment is recommended for advanced users who are comfortable accessing systems via a secure shell (SSH) and have experience working with Linux command-line environments or who have a need to debug interactions between their desktop MATLAB and cluster services. The SSH environment can support X Windows sessions for displaying a full graphical MATLAB development environment on client desktops with an X Windows server installed, typically Linux and OSX systems. For more information on using MATLAB in this environment please see MatLab CLI.

Getting Started with MATLAB

Parallel Computing Extensions

Connecting to Cheaha

UAB Mathworks Inc. Site License

UAB has acquired a university wide site license for MATLAB and Simulink software. This license includes all Mathworks Inc. products in use at UAB, with the exception of the Distributed Computing Server (DCS) which must be licensed separately. This new site license also makes available several new toolboxes and blocksets not previously licensed by UAB.

This site license is known as the Mathworks Inc. Total Academic Headcount (TAH) license or Mathworks TAH. Mathworks TAH will make it easier for everyone in the UAB community to use MATLAB, MATLAB Toolboxes (extensions) and Simulink software. Specifically, it authorizes use of MATLAB on university owned machines for all faculty, staff and students. Faculty and staff are also entitled to install the software on personally owned computers.

The TAH allows unlimited use MATLAB, Simlink and the 42 MATLAB Toolboxes in both research and teaching activities. Faculty and staff can install the software on computers located off-campus, however, students may only use Mathworks software on UAB owned computers computers located on-campus.

UAB was the first university in Alabama to implement a Mathworks TAH license.