Hi everyone,
I am trying to use kWave from Octave, but do not know where to place the kWave toolbox in order to be "visible" by Octave. Does anyone know how to resolve this?
Thank you.
Hi everyone,
I am trying to use kWave from Octave, but do not know where to place the kWave toolbox in order to be "visible" by Octave. Does anyone know how to resolve this?
Thank you.
You can place toolboxes pretty much anywhere you want, as long as the user running Octave has read permissions on the scripts and other files that compose the toolbox. The installation/configuration instructions are similar to those for MATLAB (http://www.k-wave.org/installation.php):
On *nix systems, you could unzip the k-Wave toolbox to a path like ~/matlab/k-wave-1.2.1/
, where ~
is your home directory. There should be a lot of .m
files directly inside this folder. Then, you would let Octave know about your new toolbox by creating a file called ~/.octaverc
(or another startup file, see https://octave.org/doc/interpreter/Startup-Files.html) with the contents:
addpath('~/matlab/k-wave-1.2.1')
The k-Wave functions should be accessible the next time you start Octave.
On Windows systems, you would do the same thing but using a slightly different path, like C:\Users\J_Doe\matlab\k-wave-1.2.1
. (Maybe these backslashes need to be escaped, I'm not sure right now.)
As a side note, Windows support does not seem to be a main focus of Octave developers. As per https://wiki.octave.org/Octave_for_Microsoft_Windows:
Be advised that GNU Octave is primarily developed on GNU/Linux and other POSIX conform systems. The ports of GNU Octave to Microsoft Windows use different approaches to get most of the original Octave and adapt it to Microsoft Windows idiosyncrasies [...] Bear this in mind and don't panic if you get unexpected results.
You must log in to post.