User Tools

Site Tools


software:matlab

Differences

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 [2019/09/09 17:16]
jrutte02 [Versions]
software:matlab [2019/09/09 17:46]
jrutte02
Line 1: Line 1:
 ====== Mathworks MATLAB ​ ====== ​ ====== Mathworks MATLAB ​ ====== ​
 +
 {{ http://​upload.wikimedia.org/​wikipedia/​commons/​thumb/​2/​21/​Matlab_Logo.png/​267px-Matlab_Logo.png?​100&​nocache}} 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://​upload.wikimedia.org/​wikipedia/​commons/​thumb/​2/​21/​Matlab_Logo.png/​267px-Matlab_Logo.png?​100&​nocache}} 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/​]]\\ [[http://​www.mathworks.de/​products/​matlab/​]]\\
  
 +<WRAP center round important 60%>
 +This page currently undergoes a revision. ​
 +</​WRAP>​
  
 ==== Versions ==== ==== Versions ====
Line 53: Line 57:
  
  
-====== Using Matlab-Compiler ======+====== Using Matlab ====== 
 +Using Matlab is possible several ways, which we would like to briefly introduce here. 
 + 
 +===== Interactive Job Submission ===== 
 +Request resources according to your needs, e.g. with: 
 +<code bash> 
 +[joe_user@login]$ srun -n<​ntasks>​ -p<​partition>​ -A<​account>​ -t<​time>​ --mem<​amount>​ --pty --preserve-env $SHELL ​  
 +</​code>​ 
 +Load the desired Matlab module: 
 + 
 +<code bash> 
 +module load math/​MATLAB 
 +</​code>​ 
 + 
 +Now you can run Matlab. Add ''​-nojvm''​ flag to start Matlab without the Java virtual machine, ''​nosplash''​ prevents Matlab from displaying the Matlab logo. 
 + 
 +<code bash> 
 +matlab -nojvm -nosplash 
 +</​code>​ 
 + 
 +Check the version info and the available toolboxes for that version: 
 + 
 +<code bash> 
 +>> ver 
 +</​code>​ 
 + 
 +gives: 
 + 
 +<code bash> 
 +------------------------------------------------------------------------------------------- 
 +MATLAB Version: 9.5.0.944444 (R2018b) 
 +... 
 +Operating System: Linux 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 
 +Java Version: Java is not enabled 
 +------------------------------------------------------------------------------------------- 
 +MATLAB ​                                               Version 9.5         ​(R2018b) 
 +Curve Fitting Toolbox ​                                ​Version 3.5.8       ​(R2018b) 
 +Econometrics Toolbox ​                                 Version 5.1         ​(R2018b) 
 +... 
 +</​code>​ 
 + 
 + 
 +<WRAP center round info 80%> 
 +**The use of the Matlab-Compiler ​is to be preferred!** 
 + 
 +Only a limited number of licences are available on the cluster. It is therefore preferable to use the Matlab-Compiler to compile your scripts beforehand. We explain more about the Matlab-Compiler as follows.  
 +</​WRAP>​ 
 + 
 +===== Matlab-Compiler ​=====
  
 There are several options to compile your Matlab code to stand-alone executables/​libraries. Being independent of licenses is one of the major advantages here, of course. But when running compiled code with the Matlab Runtime Envirenment (MRE) on the cluster you have to consider the threading of your code just as well as when you run Matlab itself. ​ There are several options to compile your Matlab code to stand-alone executables/​libraries. Being independent of licenses is one of the major advantages here, of course. But when running compiled code with the Matlab Runtime Envirenment (MRE) on the cluster you have to consider the threading of your code just as well as when you run Matlab itself. ​
software/matlab.txt · Last modified: 2019/09/09 17:46 by jrutte02