1function r = octave_ver_less_than(verstr) 2% function r = octave_ver_less_than(verstr) 3% 4% Returns 1 if current Octave version is strictly older than 5% the one given in argument. 6% 7% Note that this function will fail under Matlab. 8% 9% INPUTS 10% verstr: a string of the format 'x.y' or 'x.y.z' 11% 12% OUTPUTS 13% r: 0 or 1 14% 15% SPECIAL REQUIREMENTS 16% none 17 18% Copyright (C) 2008-2019 Dynare Team 19% 20% This file is part of Dynare. 21% 22% Dynare is free software: you can redistribute it and/or modify 23% it under the terms of the GNU General Public License as published by 24% the Free Software Foundation, either version 3 of the License, or 25% (at your option) any later version. 26% 27% Dynare is distributed in the hope that it will be useful, 28% but WITHOUT ANY WARRANTY; without even the implied warranty of 29% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30% GNU General Public License for more details. 31% 32% You should have received a copy of the GNU General Public License 33% along with Dynare. If not, see <http://www.gnu.org/licenses/>. 34 35r = compare_versions(version(), verstr, "<"); 36 37endfunction 38