How to force Octave to launch in GUI mode from the dock?

Ok, I found out how to modify the dock. A similar question was asked here:

How do I change the launcher commands?

The answer is to modify the properties using the 'alacarte' menu editor. Find the GNU Octave entry in this editor and change the command to '/usr/bin/octave --force-gui' in the properties window. Thereafter tick off the box which asks the program to be run in the terminal. Voila!


I launched octave using "/usr/bin/octave --force-gui". This started the gui and dropped an icon on the dock for the gui. I right clicked this new icon and locked it to the dock. Then unlocked the defult Octave icon.