Wednesday, October 9, 2013

using nohup

nohup matlab -nodisplay -nosplash -r Script1 > out.txt &

Edit
f you want to run a function  with variables, this is how to do it:

nohup matlab -nodisplay -nosplash -r "funcitonabcc(var1,var2,..,varn); exit; " > out.txt &

the text within the double quotes needs to be written just as you would call commands in matlab.