software:matlab

This is an old revision of the document!


Mathworks MATLAB

MATLAB (matrix laboratory) is a multi-paradigm 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++, Java, and Fortran. (taken from http://en.wikipedia.org/wiki/MATLAB, more details there)

http://www.mathworks.de/products/matlab/

Matlab
Version:R2013a
Lizenz:University of Mainz
Developer:Mathworks

Usage

module add software/matlab/R2013a

See the vendor documentation: http://www.mathworks.de/de/help/index.html

Using the following shell script you can compile a m-file into a stand-alone c application. It's a variation of the script for using local scratch on a node.

compileFile.sh
#!/bin/bash
 
# Store working directory to be safe
SAVEDPWD=`pwd`
FILENAME=$1
 
# We define a bash function to do the cleaning when the signal is caught
cleanup(){
    cp /jobdir/${LSB_JOBID}/*$FILENAME.sh ${SAVEDPWD}/
    cp /jobdir/${LSB_JOBID}/$FILENAME ${SAVEDPWD}/
    exit 0
}
 
# Register the cleanup function when SIGUSR2 is sent, ten minutes before the job gets killed
trap 'cleanup' SIGUSR2
 
# Copy input file
cp ${SAVEDPWD}/$FILENAME.m /jobdir/${LSB_JOBID}/
 
# Go to jobdir and start the program
cd /jobdir/${LSB_JOBID}
mcc -m $FILENAME.m
 
# Call the cleanup function when everything went fine
cleanup
  • software/matlab.1413291899.txt.gz
  • Last modified: 2014/10/14 15:04
  • by henkela