Installing Octave : On Ubuntu and Arch Linux for Stanford Machine Learning Course (the Andrew Ng Course)

Himanshu S
2 min readAug 16, 2018

--

For Windows Users it might be simpler (or expensive depending on how you look at it) to just use MATLAB which works way faster and has better execution time, but for people who use Linux as a daily driver, here is what the Octave GUI looks like >

Octave GUI

Even though octave website doesn’t go into details on how GNU Octave can be installed for various distro of Linux, a quick ppa search of Octave on Google gives the stable release channel, to install Octave execute following commands on your terminal :

When above installs, Octave can simply be launched by either entering : octave on your terminal (or) by Octave Desktop launcher found through the Application key.

For Arch Linux which I have switched to from Ubuntu, you could use the octave community package, to install it issue the following command :

sudo pacman -S octave

thereafter just use the following command :

#for the GUI
octave — gui
#for the CLI
octave-cli

See you on my next article !

If you found this useful and informative, please let me know by clapping or commenting ! Also for any queries you may have in regard to the above, ask me by commenting or tweeting @himanshuxd

--

--

Himanshu S
Himanshu S

Written by Himanshu S

Machine Learning Engineer @ Anthromorphic, I like automating the boring stuff.