This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:matlab [2014/10/14 15:06] – [Compiling a m-file on a node] henkelasoftware:matlab [2020/09/02 13:58] (current) – removed jrutte02
Line 1: Line 1:
-====== 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, more details there)  
-^  Matlab  ^^ 
-|**Lizenz:**|[[|University of Mainz]]| 
-====== Usage ====== 
-module add software/matlab/R2013a 
-See the vendor documentation: 
-===== Compiling a m-file on a node ===== 
-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 [[:local_scratch|using local scratch on a node]].  
-<file bash> 
-# Store working directory to be safe 
-# We define a bash function to do the cleaning when the signal is caught 
-    cp /jobdir/${LSB_JOBID}/*$ ${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 
  • software/matlab.1413291983.txt.gz
  • Last modified: 2014/10/14 15:06
  • by henkela