Talk:Main Page

From PrattWiki
Revision as of 16:07, 14 March 2014 by Sdh31 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Running MATLAB Script off Teer Machine without GUI

When attempting to use MATLAB on a Teer machine when not at Duke, it's often easier to refrain from opening the GUI (which is too slow). Here are some steps around that.


1) SSH into teer machine

2) Navigate to directory with MATLAB Script

3) Ensure MATLAB Script has the command 'exit' on its last line

4) type 'which matlab' into the command prompt, which should output something like /usr/bin/matlab

5) Assuming the output is /usr/bin/matlab, enter '/usr/bin/matlab -nosplash -nodisplay -nojvm -nodesktop < fileToRun.m > outputFile.txt' into command prompt

6) Open outputFile.txt with 'cat outputFile.txt' , which will allow you to see the output of MATLAB files when not at Duke (as its way too slow to open up the GUI). Currently works for text output.