How to remotely use Matlab on a distant computer (running Os X)

To remotely use Matlab on the computer, first check if Matlab is installed and then check the path of your folder within matlab (for starters, the easiest way is to actually go on the computer).

Then connect to the computer by ssh and then type :
matlab -nosplash -nodesktop -nodisplay -logfile output.txt -r 'myfunction(myarguments)'

if this is a function… or

matlab -nodesktop -nodisplay < myscript.m > output.txt 2>&1 &

if you want to run a script…

As usual please comment if you have any remarks or question 😉