Lei Lei - 1 year ago 125
Linux Question

Run Matlab in Linux without graphical environment?

I am going to run a Matlab program in a remote Linux server using SSH.
I was wondering how to run Matlab in Linux with only command line, which means there is no graphical environment?


Answer Source

Start MatLab with the the following flags

matlab -nodesktop -nojvm -nosplash
  • -nodesktop prevents the desktop

  • -nojvm prevents starting of the java virtual machine

  • -nosplash prevents the start-up splash screen.

Note, that, as Li-aung Yip noted in the comments, Mathworks does not recommend to use the -nojvm flag.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download