Octave 4.0.0 doesn’t work well with submit scripts (on Ubuntu).
Check the version on your terminal:
octave --version
if it’s 4.0.0 update it.
sudo add-apt-repository ppa:octave/stable
sudo apt update
sudo apt-get install octave
There is also warning in the discussions.