How to use MATLAB without GUI

MATLAB has a GUI that is great for editing code, inspecting runtime values and debugging. However, there are some situations when you may want to run MATLAB without the GUI. For example, you are running Matlab from over SSH and X cannot be used or is too slow over the network. Thankfully, MATLAB provides a decent console version of itself.

  • It can be invoked as:
$ matlab -nodisplay
  • If your EDITOR environment variable is set, you can edit files using edit foo.m at the MATLAB command prompt.
  • The full power of debugging is available by using the debug commands as described here.
  • Some people suggest using the -nojvm option. This is not recommended. Many MATLAB features, like the parallel cluster require the JVM to work.

Tried with: MATLAB R2014a and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.