Skip to content

OCTAVE_HOME

path · scripts/path/OCTAVE_HOME.m

: dir = OCTAVE_HOME ()

Clean-room Octave-compat helper. MATLAB-valid % comments so the file parses under MATLAB-strict user addpath as well as under the shipped scripts tree. Return the name of the top-level Nexus installation directory.

Octave scripts often call OCTAVE_HOME for the install prefix. On Nexus this is the same value as matlabroot / __NEXUS_HOME__. MATLAB has no OCTAVE_HOME; portable code should keep using matlabroot.