From b2a8b9c059b1e2cb119e8d5fa92b4388fd93c9dd Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 21 Oct 2016 15:07:08 +0200 Subject: [PATCH] isequalwithequalnans does not exist in Octave 4.2 and both Octave and Matlab encourage use of isequaln --- src/dassert.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dassert.m b/src/dassert.m index e958a65..4395056 100644 --- a/src/dassert.m +++ b/src/dassert.m @@ -52,7 +52,11 @@ if isa(A,'double') if use_isequal_matlab_builtin t = isequal(A,B); if ~t - t = isequalwithequalnans(A,B); + 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 -- GitLab