MEHOO?

Byron Shock's Home Page

MEHOO? : Computers : Software by Byron Shock : gomatlab - A Matlab command-line facility

About gomatlab
gomatlab allows users to run Matlab commands directly from the unix command line or a unix script.

This simple perl script is ideal for users who need to use Matlab to run noninteractive batch processes, such as multiple large simulations; each gomatlab process is independent.  Combined with effective load balancing, users can leverage the power of cluster computing for technical computation.

Note that gomatlab does not provide an interactive Matlab command line.  As it creates a new Matlab process (and checks out a license) each time it is run, it should be used sparingly and is most effective for large tasks.

gomatlab is beta software and license is granted on a temporary, "as-is" basis.  By using this software, you agree not to hold Byron Shock, Boston University, or the National Science Foundation liable for any damages caused by this software.  License conditions are subject to change at the whim of the author, the Trustees of Boston University, or the National Science Foundation.

Prerequisites
gomatlab is a perl script and thus requires perl.  It makes use of temporary directories and thus requires a /tmp directory on your unix filesystem.  Your unix or linux system probably meets these prerequisites.
Downloading gomatlab
Click here to download gomatlab.  (If this link shows you the program code, simply save the file.)
Installing gomatlab
Place the file gomatlab in a directory in your path.  Give gomatlab the permissions you will need to run it.  For example:
> chmod ugo+rx gomatlab
will enable all users who have access to the directory to run gomatlab.

Edit the first line of gomatlab to point to your perl interpreter.  For example:

#!/usr/bin/perl
tells the system that your copy of perl is in /usr/bin .
Using gomatlab
gomatlab has a simple syntax.  At a unix command line, simply type
> gomatlab matlab_command ,
where matlab_command is a script or function in the current directory.  If you wish to run a function that requires arguments using gomatlab, you may have to place the command in single quotes:
> gomatlab 'sqrt(2)'
Any questions?
Byron Shock can be reached via e-mail at bshock@cns.bu.edu .