Skip to content
Snippets Groups Projects
Verified Commit bc4df1c1 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bump minimal MATLAB version to R2014a

parent 371f3f0e
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ function t = dassert(A,B,tol)
% This function tests the equality of two objects.
% Copyright (C) 2011-2017 Dynare Team
% Copyright (C) 2011-2020 Dynare Team
%
% This file is part of Dynare (m-unit-tests module).
%
......@@ -52,12 +52,8 @@ if isa(A,'double')
if use_isequal_matlab_builtin
t = isequal(A,B);
if ~t
if ~isoctave && matlab_ver_less_than('7.14')
t = isequalwithequalnans(A,B);
else
t = isequaln(A,B);
end
end
else
if max(abs(A(:)-B(:)))>tol
t = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment