MATLAB (MATrix LABoratory) is a popular, powerful, general-purpose system or environment for matrix algebra calculations and many other more specific computations and applications in Biology, Aerospace, Finance, data acquisition, etc. MATLAB may be used interactively or in batch. In addition, it supports a wide array of graphical applications, ranging from bar charts, line and surface plots to volumetric rendering.
Availability and Setup
MATLAB version R2013a is available on the SCC.
Those who wish to install MATLAB on their own computers, rather than using it on our systems, should consult the MATLAB licenses page.
To enable graphics, MATLAB should be invoked under the X Window System on X terminals or workstations. To do this, you must first set your DISPLAY environment variable to allow you to run this X Application and allow it to display graphics on your local machine/terminal. You may also want to set the environment variable TERM to be xterm
Users accessing SCF systems to run MATLAB from a PC or Mac will likely want to set up X Forwarding.
Running MATLAB Interactively
Running MATLAB interactively in the default mode enables graphics. This requires X Forwarding to run it. To invoke MATLAB on the SCC, type:
This should bring up MATLAB in its own separate window with the Command Window active and the
>> MATLAB command prompt. This signifies that you have successfully started the MATLAB environment.
On clients without xterm or if graphics are not needed, you can start MATLAB with graphics disabled:
scc1% matlab -nodisplay < M A T L A B (R) > Copyright 1984-2013 The MathWorks, Inc. R2013a (220.127.116.114) 64-bit (glnxa64) February 15, 2013 To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com. >>
To close either version of the MATLAB session, enter
To get started with MATLAB, you can visit our in-house Introduction to MATLAB tutorial. Alternatively, you can go to The Mathworks, MATLAB’s developer, site to learn from their MATLAB video tutorials on a wide range of applications. More frequently, users get help from within the MATLAB environment using the command
help followed by the name of the utility function. For example,
>> help cos
If you don’t know the name of the utility, you can search with a succinct description (enclosed in single quotes to preserve spaces if multiple words are used) of the application, like this:
>> lookfor cosine acos - Inverse cosine, result in radians. acosd - Inverse cosine, result in degrees. acosh - Inverse hyperbolic cosine. cos - Cosine of argument in radians. cosd - Cosine of argument in degrees. cosh - Hyperbolic cosine. . . .
To read the MATLAB documentation
>> help doc