Date: Dec 24, 2012 4:59 AM
Subject: How to run matlab in a cluster from various folders
I am trying to run a matlab file "main.m" that is located in folder ~/home/matlab.
Ideally I want to locate an .sh file in ~/home that runs the matlab file main.m located in ~/home/matlab. How can I do it?
It is easy to do it when both my .sh file and matlab file are in the same folder. I then need to write
matlab -nodesktop -nosplash -r main
and it works fine. However I cannot find how to run something like
matlab -nodesktop -nosplash -r matlab/main