Install Octave packages on ubuntu 16

I tried several commands to install the package optimizer in my Octave in Ubuntu 16.10 in order to use the xcorr feature, but I failed terribly.

Some of these commands:

  • sudo apt-get install octave-optim
  • sudo apt-get install liboctave-dev
  • sudo apt-get install octave beep
  • sudo apt-get install octave-pkg-dev

Can someone explain to me or does anyone know how to install packages in Ubuntu 16? After running the above commands, I restarted Octave, but the xcorr () command still returned an error:

warning: the "xcorr" function belongs to the Octave Forge signals package that you installed but did not download. To load the package, run 'load load signal' from the Octave prompt.

Unfortunately, 'pkg' returns:

No 'pkg' command found, you mean: Command 'pig' from package 'bsdgames' (universe) Command 'peg' from package 'peg' (universe) Command 'pki' from package "pki-tools" (universe ) Command "pki" from package "strongswan-starter" (main) Command "dpkg" from package 'dpkg' (main) Command 'pg' from package 'util-linux' (main) command 'ekg' from package 'ekg' (universe) Command 'ekg' from package 'ekg-gtk' (universe) pkg: command not found

0


source to share


1 answer


Enter pkg load signal

Octave at the command line as you have already installed it. To automatically load it every time you start Octave, create a ~ / .octaverc file and add a line pkg load signal

inside the file.

If in the future the required pkg is not currently installed, you need to install it using pkg install -forge <pkgname>

eg. pkg install -forge io

... Likewise, you will need to download it as described earlier.



Hope it helps.

0


source







All Articles