To run on Linux in terminal without GUI:
matlab -nodisplay -nosplash -nodesktop -r "run('/home/jon/Desktop/aviram/WirelessSDN_optimizer/SimSelector.m');"
If the matlab command is not recognized use that answer: https://askubuntu.com/a/185773/503634