GNU Octave 5.1.0 Released with HiDPI Support (Howto Install)

March 2, 2019 — 5 Comments

GNU Octave 5.1.0 was announced yesterday as a new major release with Matlab compatibility improvements, and many new and improved functions.

GNU Octave 5.1.0 release highlights:

  • Adds HiDPI support
  • Requires Qt4 >= 4.8, though Qt5 is preferred.
  • Adds many new functions.
  • Printing to raster formats now uses an OpenGL-based method by default
  • New print options for PDF and PostScript
  • A new printing device produces ASCII art for plots
  • The FFTW library is now required for FFT calculations
  • The OSMesa library is no longer used.

How to Install Octave 5.1 in Ubuntu 18.04/16.04:

1. First open terminal (Ctrl+Alt+T) and make sure Flatpak support is enabled by running command:

sudo apt-get install flatpak

For Ubuntu 16.04, you need to add the Flatpak PPA first to be able to install Flatpak framework.

2. Then add the Flathub repository, the best place to get Flatpak apps:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

3. Finally install GNU Octave from the Flathub repository:

flatpak install flathub org.octave.Octave

It will take a few minutes downloading the flatpak package as well as dependency platform if you’re first time installing it.

Like normal applications, you can launch Octave from Gnome app launcher:

The flatpak co-exists with traditional Octave package. You can alternatively run it in command line:

flatpak run org.octave.Octave

Uninstall:

You can remove the Octave flatpak package by running command:

flatpak uninstall org.octave.Octave

And remove flatpak support if you want:

sudo apt-get remove flatpak

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to ubuntuhandbook1@gmail.com

5 responses to GNU Octave 5.1.0 Released with HiDPI Support (Howto Install)

  1. amgadelsaiegh March 3, 2019 at 9:31 am

    i guess it would have been better if you wrote a hint about what does this program do for newbie users like myself :D

    • Octave is a clone of Matlab. It is, “high-level language, primarily intended for numerical computations.” It is pretty good. However, this new version (5.1.0) breaks the packages necessary for digital signal processing (e.g., control, signal, and communications). This makes it pretty much useless for that application.

  2. For amgadelsaiegh: Octave (and Matlab) are keen on arithmetic with arrays. Try
    x = [1 2 3 4 5]
    (This creates a 1-dimensional array with five values. Not ending the statement with a ; means that the results will be displayed.)
    y = x.^2 – 1;
    (The ^ signifies exponentiation (instead of say **); the .^ means that it is one element at a go: Octave/Matlab really does want to use matrix arithmetic so z = x*y will be rejected but z = x.*y succeeds.)
    plot(x,y)
    Text handling I have found maddening and Nx1 versus 1xN arrays also.

  3. I’ve done above things but
    I see one Octave package (old one) at GUI

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*