User Tools

Site Tools


cluster:matlab

Differences

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

Link to this comparison view

Next revision
Previous revision
cluster:matlab [2018/10/01 18:27] – created mcloughlincluster:matlab [2024/11/11 20:37] (current) – removed mcloughlin
Line 1: Line 1:
-====== Matlab ====== 
  
-The cluster has Matlab R2013a and R2014a.  To run Matlab, use the command: <code>matlab -nojvm -nodisplay</code> 
- 
-Using just the below command will also work, though it will give errors from failing to find a display:<code>matlab</code>  
- 
-To run Matlab in batch mode, use the command <code>matlab < your-file.m</code> 
- 
-This command will print the results of **your-file.m** onto the screen. If you want to redirect this to an output file, use <code>matlab < your-file.m > log.txt</code> 
- 
-===== Graphics ===== 
-You should bear in mind that the cluster excels at numerical analysis and NOT graphics.   By default, there is only a command line interface to Matlab.  It is possible to get graphics from the server forwarded to your computer, but it is VERY slow.   
- 
-If you want to create graphs, this is still possible.  By assigning your plot command to a variable and then using **saveas**, you can get this effect: 
-<code> 
-h = plot(x,y) 
-saveas(h,'yourFigure.jpg') 
-</code> 
- 
-===== Tomlab ===== 
-The department has a license for Tomlab, which contains several optimization algorithms that improve on Matlab's defaults.  If you are solving problems that are computationally difficult you might try solving using Tomlab instead. 
- 
-===== Dynare ===== 
-Dynare is able to handle large class of dynamic economic models, especially good for solving DSGE and OLG models. Dynare is currently available on the cluster as a toolbox. You will need to modify the access path by including the following line to your code: 
-<code> 
-addpath /usr/local/matlab/toolbox/dynare 
-</code> 
- 
-For more information on how to use Dynare visit the [[http://www.dynare.org/|Dynare Website]]. 
- 
-===== Parallel ===== 
-The cluster also has Matlab Parallel Computing Toolbox. 
cluster/matlab.1538418471.txt.gz · Last modified: 2018/10/01 18:27 (external edit)