/usr/share/octave/site/m/vlfeat/toolbox/misc/vl_isoctave.m is in octave-vlfeat 0.9.17+dfsg0-6build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | function x = vl_isoctave()
% VL_ISOCTAVE Determines whether Octave is running
% X = VL_ISOCTAVE() returns TRUE if the script is running in the
% Octave environment (instead of MATLAB).
persistent y ;
if isempty(y)
y = exist('OCTAVE_VERSION','builtin') ~= 0 ;
end
x = y ;
|