![]()
MEHOO? : Computers : Software by Byron Shock : gomatlab - A Matlab command-line facility
About gomatlabgomatlab allows users to run Matlab commands directly from the unix command line or a unix script.PrerequisitesThis 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.
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 gomatlabClick here to download gomatlab. (If this link shows you the program code, simply save the file.)Installing gomatlabPlace the file gomatlab in a directory in your path. Give gomatlab the permissions you will need to run it. For example:Using gomatlab> chmod ugo+rx gomatlabwill 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/perltells the system that your copy of perl is in /usr/bin .gomatlab has a simple syntax. At a unix command line, simply typeAny questions?> 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)'Byron Shock can be reached via e-mail at bshock@cns.bu.edu .