Home My Accounts | Newsletter | News Flash | Contact Us | Search

 

Issues/Circulation
Current Issue: December 2004
Other Issues
Applications
Matlab Release 14 on Willow
Setting up the MATLAB Environment
Using MATLAB at MCSR, Part II
Dplace Utility
Running CPMD on Sweetgum
Amber 7 on Redwood
Removing ^M From Files
Systems
Redwood Quotas and /ptmp Space
The MCSR Parallel-O-Gram
Setting up the MATLAB Environment at MCSR A short article on Matlab V

See also Getting Started with MATLAB at MCSR, Part I , Getting Started with MATLAB at MCSR, Part II, and MATLAB at UM/MCSR

Matlab may be run in X Windows mode, or command-line mode, on both MCSR/UM systems that host it: sweetgum and willow. This article tells how to setup the environment on each system for command-line Matlab. Setup for X Windows (graphical) mode will be discussed in a later article.

 

***********************

Willow Setup for Matlab

 

Before running Matlab on willow, you might need to ensure that your LD_LIBRARY_PATH variable includes this directory: /ptmp/studio8/SUNWspro/lib/. Confirm this by typing:

 

echo $LD_LIBRARY_PATH

 

at the command prompt. If this directory is not included, you’ll need to update the path variable in one of two possible ways. If you are using one of the sh/bash/ksh family of shells:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ptmp/studio8/SUNWspro/lib/

or, if you are using one of the csh/tcsh family of shells:

setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/ptmp/studio8/SUNWspro/lib/

 

If you aren’t sure which shell you are running, type:
echo $SHELL

 

Once your LD_LIBRARY_PATH variable is set correctly, you can continue.

 

Matlab Setup on Sweetgum

 

On sweetgum, you don’t need to worry about the LD_LIBRARY_PATH variable, but you do need to worry about the DISPLAY variable, if you intend to run MATLAB via the command-line interface (as opposed to the graphical, X-Windows interface, which is beyond the scope of this article.) If you attempt to start MATLAB on sweetgum, and get an error message kind of like this:

 

X connection to sweetgum:16.0 broken (explicit kill or server shutdown).

 

then this means sweetgum is trying to launch Matlab in X-Windows mode. To force it into command-line mode, you first need to unset the DISPLAY variable, like this:

 

unset DISPLAY

 

--------------------------------
Last Modified: Monday, 20-Dec-2004 15:59:22 CST
Copyright © 1997-2005 The Mississippi Center for Supercomputing Research. All Rights Reserved.
[an error occurred while processing this directive]