1function tf = ver_greater_than_equal(ver1, ver2)
2%function tf = ver_greater_than_equal(ver1, ver2)
3% ver1 >= ver2 ? 1 : 0;
4%
5% INPUTS
6%    ver1    [string]    software version number
7%    ver2    [string]    software version number
8%
9% OUTPUTS
10%    tf      [bool]      true if ver1 > ver2
11%
12% SPECIAL REQUIREMENTS
13%    none
14
15% Copyright (C) 2015 Dynare Team
16%
17% This file is part of Dynare.
18%
19% Dynare is free software: you can redistribute it and/or modify
20% it under the terms of the GNU General Public License as published by
21% the Free Software Foundation, either version 3 of the License, or
22% (at your option) any later version.
23%
24% Dynare is distributed in the hope that it will be useful,
25% but WITHOUT ANY WARRANTY; without even the implied warranty of
26% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27% GNU General Public License for more details.
28%
29% You should have received a copy of the GNU General Public License
30% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
31
32tf = ver_greater_than(ver1, ver2) || strcmp(ver1, ver2);
33end