1
Vote

xxOctaveRelease() for irisstartup

description

I've implemented this, so instead of "do nothing" we may do the following when starting up in Octave:
    vv = xxOctaveRelease();
    if vv < 4101 % 4.1.0+, since classdef branch is far from stable
        error('iris:startup', ['Sorry, The IRIS Toolbox ', ...
        'can only run in Octave 4.1.0 or higher.']);
    end
Given that xxOctaveRelease looks like that:
function verNum = xxOctaveRelease()

try
    s = ver('OCTAVE');
    verVec = sscanf(s.Version,'%d.%d.%d%c');
    verNum = sum(reshape(verVec(1:3),1,[]).*[1e3 1e2 1e1]) + (length(verVec)>3);
catch %#ok<CTCH>
    verNum = [];
end

end % xxOctaveRelease()

comments