I am running matlab on 48 virtual machines and would like to automate it. I ssh into the machines then use matlab -r matlab_command > outfile.txt & to get t
matlab -r matlab_command > outfile.txt &
If you are using file:
nohup matlab -nodesktop -nodisplay < file.m > result.txt &
You might need to press enter after you execute this.