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
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ function t = dassert(A,B,tol) ...@@ -2,7 +2,7 @@ function t = dassert(A,B,tol)
% This function tests the equality of two objects. % 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). % This file is part of Dynare (m-unit-tests module).
% %
...@@ -52,11 +52,7 @@ if isa(A,'double') ...@@ -52,11 +52,7 @@ if isa(A,'double')
if use_isequal_matlab_builtin if use_isequal_matlab_builtin
t = isequal(A,B); t = isequal(A,B);
if ~t if ~t
if ~isoctave && matlab_ver_less_than('7.14') t = isequaln(A,B);
t = isequalwithequalnans(A,B);
else
t = isequaln(A,B);
end
end end
else else
if max(abs(A(:)-B(:)))>tol if max(abs(A(:)-B(:)))>tol
...@@ -94,4 +90,4 @@ else ...@@ -94,4 +90,4 @@ else
else else
t = isequal(A, B, tol); t = isequal(A, B, tol);
end end
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment